#9E87F2#9E87F2
#9E87F2 is a light, vivid violet. Relative luminance 0.310; OKLCH L 69.0% C 0.154 H 291.7°. Best body text is #000000 at 7.20:1 contrast (WCAG AA passes).
Color values
| HEX | #9E87F2 |
|---|---|
| RGB | rgb(158, 135, 242) |
| HSL | hsl(253, 80%, 74%) |
| HSV | hsv(253, 44%, 95%) |
| CMYK | cmyk(34.7%, 44.2%, 0%, 5.1%) |
| CIE-LAB | lab(62.51, 32.45, -50.88) |
| CIE-LCH | lch(62.51, 60.34, 302.53°) |
| OKLab | oklab(68.98% 0.0571 -0.1432) |
| OKLCH | oklch(68.98% 0.154 291.7) |
| XYZ | xyz(38.7873, 31.0070, 87.9285) |
| Luminance | 0.3101 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 4.00
Perrywinkle
#8F8CE7
ΔE00 4.11
Lavender Blue
#8B88F8
ΔE00 4.33
Mediumpurple
#9370DB
ΔE00 7.24
Liliac
#C48EFD
ΔE00 7.31
Periwinkle Blue
#8F99FB
ΔE00 7.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E87F2 #DBF287
analogous
#87A6F2 #9E87F2 #D487F2
triadic
#9E87F2 #F29E87 #87F29E
tetradic
#9E87F2 #F287A6 #DBF287 #87F2D4
square
#9E87F2 #F287A6 #DBF287 #87F2D4
split-complementary
#9E87F2 #F2D487 #A6F287
monochromatic
#4519E6 #7150EC #9E87F2 #CBBEF8 #E9E3FC
Accessibility & contrast
On white
2.92
#9E87F2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.20
#9E87F2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #9E87F2
7.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E87F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9E87F2 | 1.00 | 2.92 | 7.20 | 7.20 |
| #FFFFFF | 2.92 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.20 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.20 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6399F6
Deuteranopia (green-blind)
#6695EF
Tritanopia (blue-blind)
#899BB1
Achromatopsia (no color)
#979797
Design tokens & code
CSS
--color: #9e87f2; /* rgb */ color: rgb(158, 135, 242); /* oklch */ color: oklch(69.0% 0.154 291.7);
Tailwind
colors: {
custom: {
50: '#beaaf7',
500: '#9e87f2',
950: '#000000',
},
}SCSS
$custom: #9e87f2; $custom-light: #beaaf7; $custom-dark: #000000;
JSON
{
"hex": "#9e87f2",
"rgb": {
"r": 158,
"g": 135,
"b": 242
},
"hsl": {
"h": 252.897,
"s": 80.451,
"l": 73.922
},
"oklch": {
"l": 0.68982,
"c": 0.15418,
"h": 291.7
},
"luminance": 0.31008
}Semantic roles & 50–950 ramp
primary
#9E87F2
secondary
#EEF4D7
accent
#DD09AF
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85