#9E51EB#9E51EB

#9E51EB is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 60.3% C 0.223 H 303.2°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#9E51EB
RGBrgb(158, 81, 235)
HSLhsl(270, 79%, 62%)
HSVhsv(270, 66%, 92%)
CMYKcmyk(32.8%, 65.5%, 0%, 7.8%)
CIE-LABlab(50.86, 59.75, -65.63)
CIE-LCHlch(50.86, 88.76, 312.32°)
OKLaboklab(60.26% 0.1222 -0.1864)
OKLCHoklch(60.26% 0.223 303.2)
XYZxyz(32.0349, 19.1521, 80.5902)
Luminance0.1915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E51EB #9EEB51
analogous
#5151EB #9E51EB #EB51EB
triadic
#9E51EB #EB9E51 #51EB9E
tetradic
#9E51EB #EB5151 #9EEB51 #51EBEB
square
#9E51EB #EB5151 #9EEB51 #51EBEB
split-complementary
#9E51EB #EBEB51 #51EB51
monochromatic
#6114AE #7F1AE5 #9E51EB #BD88F1 #DBBFF8

Accessibility & contrast

On white

4.35
#9E51EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#9E51EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E51EB
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E51EB#FFFFFF#000000##000000
##9E51EB1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F0
Deuteranopia (green-blind)
#1479E8
Tritanopia (blue-blind)
#8F7397
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9e51eb;
/* rgb */ color: rgb(158, 81, 235);
/* oklch */ color: oklch(60.3% 0.223 303.2);
Tailwind
colors: {
  custom: {
    50: '#c087f2',
    500: '#9e51eb',
    950: '#000000',
  },
}
SCSS
$custom: #9e51eb;
$custom-light: #c087f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e51eb",
  "rgb": {
    "r": 158,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 270,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60255,
    "c": 0.2229,
    "h": 303.2
  },
  "luminance": 0.19152
}

Semantic roles & 50–950 ramp

primary
#9E51EB
secondary
#CCE8B0
accent
#DC0A73
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9E51EB

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

Preview Lab → · Contrast checker → · Palette generator →

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