#9E51D2#9E51D2

#9E51D2 is a mid, vivid violet. Relative luminance 0.178; OKLCH L 58.6% C 0.196 H 309.1°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#9E51D2
RGBrgb(158, 81, 210)
HSLhsl(276, 59%, 57%)
HSVhsv(276, 61%, 82%)
CMYKcmyk(24.8%, 61.4%, 0%, 17.6%)
CIE-LABlab(49.26, 54.04, -54.04)
CIE-LCHlch(49.26, 76.42, 315.00°)
OKLaboklab(58.59% 0.1238 -0.1524)
OKLCHoklch(58.59% 0.196 309.1)
XYZxyz(28.6735, 17.8076, 62.8870)
Luminance0.1781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E51D2 #85D251
analogous
#5E51D2 #9E51D2 #D251C6
triadic
#9E51D2 #D29E51 #51D29E
tetradic
#9E51D2 #D25E51 #85D251 #51C6D2
square
#9E51D2 #D25E51 #85D251 #51C6D2
split-complementary
#9E51D2 #C6D251 #51D25E
monochromatic
#5E2386 #802FB7 #9E51D2 #B982DF #D4B2EB

Accessibility & contrast

On white

4.60
#9E51D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#9E51D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9E51D2
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E51D2#FFFFFF#000000##FFFFFF
##9E51D21.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1372D6
Deuteranopia (green-blind)
#3F76CF
Tritanopia (blue-blind)
#976A8A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9e51d2;
/* rgb */ color: rgb(158, 81, 210);
/* oklch */ color: oklch(58.6% 0.196 309.1);
Tailwind
colors: {
  custom: {
    50: '#be86e0',
    500: '#9e51d2',
    950: '#000000',
  },
}
SCSS
$custom: #9e51d2;
$custom-light: #be86e0;
$custom-dark: #000000;
JSON
{
  "hex": "#9e51d2",
  "rgb": {
    "r": 158,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 275.814,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.58587,
    "c": 0.19635,
    "h": 309.1
  },
  "luminance": 0.17807
}

Semantic roles & 50–950 ramp

primary
#9E51D2
secondary
#BADAA5
accent
#E24685
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9E51D2

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

Preview Lab → · Contrast checker → · Palette generator →

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