#9E51E5#9E51E5

#9E51E5 is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.8% C 0.217 H 304.5°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#9E51E5
RGBrgb(158, 81, 229)
HSLhsl(271, 74%, 61%)
HSVhsv(271, 65%, 90%)
CMYKcmyk(31%, 64.6%, 0%, 10.2%)
CIE-LABlab(50.47, 58.36, -62.89)
CIE-LCHlch(50.47, 85.80, 312.86°)
OKLaboklab(59.84% 0.1228 -0.1784)
OKLCHoklch(59.84% 0.217 304.5)
XYZxyz(31.1827, 18.8112, 76.1017)
Luminance0.1881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E51E5 #98E551
analogous
#5451E5 #9E51E5 #E551E2
triadic
#9E51E5 #E59E51 #51E59E
tetradic
#9E51E5 #E55451 #98E551 #51E2E5
square
#9E51E5 #E55451 #98E551 #51E2E5
split-complementary
#9E51E5 #E2E551 #51E554
monochromatic
#6118A3 #8020D8 #9E51E5 #BC86ED #D9BBF5

Accessibility & contrast

On white

4.41
#9E51E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#9E51E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E51E5
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E51E5#FFFFFF#000000##000000
##9E51E51.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076EA
Deuteranopia (green-blind)
#2478E2
Tritanopia (blue-blind)
#917194
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9e51e5;
/* rgb */ color: rgb(158, 81, 229);
/* oklch */ color: oklch(59.8% 0.217 304.5);
Tailwind
colors: {
  custom: {
    50: '#bf86ee',
    500: '#9e51e5',
    950: '#000000',
  },
}
SCSS
$custom: #9e51e5;
$custom-light: #bf86ee;
$custom-dark: #000000;
JSON
{
  "hex": "#9e51e5",
  "rgb": {
    "r": 158,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 271.216,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.59841,
    "c": 0.21654,
    "h": 304.5
  },
  "luminance": 0.18811
}

Semantic roles & 50–950 ramp

primary
#9E51E5
secondary
#C8E5AD
accent
#D60F6F
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9E51E5

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

Preview Lab → · Contrast checker → · Palette generator →

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