#9752DB#9752DB

#9752DB is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.5% C 0.203 H 303.9°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#9752DB
RGBrgb(151, 82, 219)
HSLhsl(270, 66%, 59%)
HSVhsv(270, 63%, 86%)
CMYKcmyk(31.1%, 62.6%, 0%, 14.1%)
CIE-LABlab(49.17, 54.02, -59.37)
CIE-LCHlch(49.17, 80.27, 312.30°)
OKLaboklab(58.51% 0.1133 -0.1683)
OKLCHoklch(58.51% 0.203 303.9)
XYZxyz(28.5631, 17.7285, 68.9213)
Luminance0.1773 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9752DB #96DB52
analogous
#5352DB #9752DB #DB52DB
triadic
#9752DB #DB9752 #52DB97
tetradic
#9752DB #DB5352 #96DB52 #52DBDB
square
#9752DB #DB5352 #96DB52 #52DBDB
split-complementary
#9752DB #DBDB52 #52DB53
monochromatic
#5A1F94 #7829C6 #9752DB #B585E6 #D4B7F0

Accessibility & contrast

On white

4.62
#9752DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#9752DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9752DB
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9752DB#FFFFFF#000000##FFFFFF
##9752DB1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DF
Deuteranopia (green-blind)
#2C75D8
Tritanopia (blue-blind)
#8A6F8F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9752db;
/* rgb */ color: rgb(151, 82, 219);
/* oklch */ color: oklch(58.5% 0.203 303.9);
Tailwind
colors: {
  custom: {
    50: '#ba86e7',
    500: '#9752db',
    950: '#000000',
  },
}
SCSS
$custom: #9752db;
$custom-light: #ba86e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9752db",
  "rgb": {
    "r": 151,
    "g": 82,
    "b": 219
  },
  "hsl": {
    "h": 270.219,
    "s": 65.55,
    "l": 59.02
  },
  "oklch": {
    "l": 0.58513,
    "c": 0.20282,
    "h": 303.9
  },
  "luminance": 0.17728
}

Semantic roles & 50–950 ramp

primary
#9752DB
secondary
#C4DFAA
accent
#E93F93
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9752DB

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#9752DB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva