#9E51E2#9E51E2

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

Color values

HEX#9E51E2
RGBrgb(158, 81, 226)
HSLhsl(272, 71%, 60%)
HSVhsv(272, 64%, 89%)
CMYKcmyk(30.1%, 64.2%, 0%, 11.4%)
CIE-LABlab(50.27, 57.67, -61.52)
CIE-LCHlch(50.27, 84.32, 313.15°)
OKLaboklab(59.64% 0.123 -0.1743)
OKLCHoklch(59.64% 0.213 305.2)
XYZxyz(30.7674, 18.6451, 73.9148)
Luminance0.1865 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E51E2 #95E251
analogous
#5551E2 #9E51E2 #E251DE
triadic
#9E51E2 #E29E51 #51E29E
tetradic
#9E51E2 #E25551 #95E251 #51DEE2
square
#9E51E2 #E25551 #95E251 #51DEE2
split-complementary
#9E51E2 #DEE251 #51E255
monochromatic
#601A9E #8023D3 #9E51E2 #BB85EB #D8BAF3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9E51E2#FFFFFF#000000##000000
##9E51E21.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)
#0075E6
Deuteranopia (green-blind)
#2A78DF
Tritanopia (blue-blind)
#927093
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9e51e2;
/* rgb */ color: rgb(158, 81, 226);
/* oklch */ color: oklch(59.6% 0.213 305.2);
Tailwind
colors: {
  custom: {
    50: '#bf86ec',
    500: '#9e51e2',
    950: '#000000',
  },
}
SCSS
$custom: #9e51e2;
$custom-light: #bf86ec;
$custom-dark: #000000;
JSON
{
  "hex": "#9e51e2",
  "rgb": {
    "r": 158,
    "g": 81,
    "b": 226
  },
  "hsl": {
    "h": 271.862,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.59638,
    "c": 0.21336,
    "h": 305.2
  },
  "luminance": 0.18645
}

Semantic roles & 50–950 ramp

primary
#9E51E2
secondary
#C6E3AC
accent
#D3126D
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9E51E2

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

Preview Lab → · Contrast checker → · Palette generator →

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