#9E51DC#9E51DC

#9E51DC is a mid, highly saturated violet. Relative luminance 0.183; OKLCH L 59.2% C 0.207 H 306.6°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#9E51DC
RGBrgb(158, 81, 220)
HSLhsl(273, 67%, 59%)
HSVhsv(273, 63%, 86%)
CMYKcmyk(28.2%, 63.2%, 0%, 13.7%)
CIE-LABlab(49.88, 56.29, -58.74)
CIE-LCHlch(49.88, 81.36, 313.78°)
OKLaboklab(59.24% 0.1234 -0.1662)
OKLCHoklch(59.24% 0.207 306.6)
XYZxyz(29.9585, 18.3216, 69.6544)
Luminance0.1832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E51DC #8FDC51
analogous
#5951DC #9E51DC #DC51D5
triadic
#9E51DC #DC9E51 #51DC9E
tetradic
#9E51DC #DC5951 #8FDC51 #51D5DC
square
#9E51DC #DC5951 #8FDC51 #51D5DC
split-complementary
#9E51DC #D5DC51 #51DC59
monochromatic
#601E95 #8128C8 #9E51DC #BA84E6 #D7B7F0

Accessibility & contrast

On white

4.50
#9E51DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#9E51DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E51DC
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E51DC#FFFFFF#000000##000000
##9E51DC1.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E0
Deuteranopia (green-blind)
#3377D9
Tritanopia (blue-blind)
#946E8F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9e51dc;
/* rgb */ color: rgb(158, 81, 220);
/* oklch */ color: oklch(59.2% 0.207 306.6);
Tailwind
colors: {
  custom: {
    50: '#bf86e8',
    500: '#9e51dc',
    950: '#000000',
  },
}
SCSS
$custom: #9e51dc;
$custom-light: #bf86e8;
$custom-dark: #000000;
JSON
{
  "hex": "#9e51dc",
  "rgb": {
    "r": 158,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 273.237,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.59236,
    "c": 0.20699,
    "h": 306.6
  },
  "luminance": 0.18321
}

Semantic roles & 50–950 ramp

primary
#9E51DC
secondary
#C1E0A9
accent
#E93E8B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9E51DC

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

Preview Lab → · Contrast checker → · Palette generator →

#9E51DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva