#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 |
|---|---|
| RGB | rgb(158, 81, 226) |
| HSL | hsl(272, 71%, 60%) |
| HSV | hsv(272, 64%, 89%) |
| CMYK | cmyk(30.1%, 64.2%, 0%, 11.4%) |
| CIE-LAB | lab(50.27, 57.67, -61.52) |
| CIE-LCH | lch(50.27, 84.32, 313.15°) |
| OKLab | oklab(59.64% 0.123 -0.1743) |
| OKLCH | oklch(59.64% 0.213 305.2) |
| XYZ | xyz(30.7674, 18.6451, 73.9148) |
| Luminance | 0.1865 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 1.45
Lighter Purple
#A55AF4
ΔE00 3.79
Purpley
#8756E4
ΔE00 4.27
Electric Purple
#AA23FF
ΔE00 6.15
Amethyst
#9B5FC0
ΔE00 6.28
Mediumorchid
#BA55D3
ΔE00 6.69
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 |
|---|---|---|---|---|
| ##9E51E2 | 1.00 | 4.44 | 4.73 | 4.73 |
| #FFFFFF | 4.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.73 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.73 | 21.00 | 1.00 | 1.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