#9E4DEC#9E4DEC

#9E4DEC is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 59.8% C 0.229 H 303.5°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#9E4DEC
RGBrgb(158, 77, 236)
HSLhsl(271, 81%, 61%)
HSVhsv(271, 67%, 93%)
CMYKcmyk(33.1%, 67.4%, 0%, 7.5%)
CIE-LABlab(50.26, 61.86, -67.18)
CIE-LCHlch(50.26, 91.32, 312.64°)
OKLaboklab(59.84% 0.1263 -0.191)
OKLCHoklch(59.84% 0.229 303.5)
XYZxyz(31.8913, 18.6330, 81.2570)
Luminance0.1863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E4DEC #9BEC4D
analogous
#4F4DEC #9E4DEC #EC4DEB
triadic
#9E4DEC #EC9E4D #4DEC9E
tetradic
#9E4DEC #EC4F4D #9BEC4D #4DEBEC
square
#9E4DEC #EC4F4D #9BEC4D #4DEBEC
split-complementary
#9E4DEC #EBEC4D #4DEC4F
monochromatic
#6112AC #8018E4 #9E4DEC #BC84F2 #DABCF8

Accessibility & contrast

On white

4.44
#9E4DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#9E4DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E4DEC
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E4DEC#FFFFFF#000000##000000
##9E4DEC1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076F1
Deuteranopia (green-blind)
#0077E9
Tritanopia (blue-blind)
#8F7197
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9e4dec;
/* rgb */ color: rgb(158, 77, 236);
/* oklch */ color: oklch(59.8% 0.229 303.5);
Tailwind
colors: {
  custom: {
    50: '#c084f3',
    500: '#9e4dec',
    950: '#000000',
  },
}
SCSS
$custom: #9e4dec;
$custom-light: #c084f3;
$custom-dark: #000000;
JSON
{
  "hex": "#9e4dec",
  "rgb": {
    "r": 158,
    "g": 77,
    "b": 236
  },
  "hsl": {
    "h": 270.566,
    "s": 80.711,
    "l": 61.373
  },
  "oklch": {
    "l": 0.59839,
    "c": 0.22894,
    "h": 303.5
  },
  "luminance": 0.18633
}

Semantic roles & 50–950 ramp

primary
#9E4DEC
secondary
#CAE8AD
accent
#DD0871
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130B17
muted
#827C85

Preview Lab

Preview with #9E4DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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