#9D87F2#9D87F2
#9D87F2 is a light, vivid violet. Relative luminance 0.309; OKLCH L 68.9% C 0.154 H 291.3°. Best body text is #000000 at 7.18:1 contrast (WCAG AA passes).
Color values
| HEX | #9D87F2 |
|---|---|
| RGB | rgb(157, 135, 242) |
| HSL | hsl(252, 80%, 74%) |
| HSV | hsv(252, 44%, 95%) |
| CMYK | cmyk(35.1%, 44.2%, 0%, 5.1%) |
| CIE-LAB | lab(62.43, 32.19, -51.02) |
| CIE-LCH | lch(62.43, 60.33, 302.25°) |
| OKLab | oklab(68.9% 0.0559 -0.1437) |
| OKLCH | oklch(68.9% 0.154 291.3) |
| XYZ | xyz(38.5914, 30.9059, 87.9194) |
| Luminance | 0.3091 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 3.83
Perrywinkle
#8F8CE7
ΔE00 3.94
Lavender Blue
#8B88F8
ΔE00 4.12
Mediumpurple
#9370DB
ΔE00 7.24
Periwinkle Blue
#8F99FB
ΔE00 7.27
Liliac
#C48EFD
ΔE00 7.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D87F2 #DCF287
analogous
#87A7F2 #9D87F2 #D287F2
triadic
#9D87F2 #F29D87 #87F29D
tetradic
#9D87F2 #F287A7 #DCF287 #87F2D2
square
#9D87F2 #F287A7 #DCF287 #87F2D2
split-complementary
#9D87F2 #F2D287 #A7F287
monochromatic
#4319E6 #7050EC #9D87F2 #CABEF8 #E8E3FC
Accessibility & contrast
On white
2.92
#9D87F2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.18
#9D87F2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #9D87F2
7.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D87F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D87F2 | 1.00 | 2.92 | 7.18 | 7.18 |
| #FFFFFF | 2.92 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.18 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.18 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6399F6
Deuteranopia (green-blind)
#6595EF
Tritanopia (blue-blind)
#889CB1
Achromatopsia (no color)
#979797
Design tokens & code
CSS
--color: #9d87f2; /* rgb */ color: rgb(157, 135, 242); /* oklch */ color: oklch(68.9% 0.154 291.3);
Tailwind
colors: {
custom: {
50: '#bdaaf7',
500: '#9d87f2',
950: '#000000',
},
}SCSS
$custom: #9d87f2; $custom-light: #bdaaf7; $custom-dark: #000000;
JSON
{
"hex": "#9d87f2",
"rgb": {
"r": 157,
"g": 135,
"b": 242
},
"hsl": {
"h": 252.336,
"s": 80.451,
"l": 73.922
},
"oklch": {
"l": 0.68897,
"c": 0.15417,
"h": 291.3
},
"luminance": 0.30907
}Semantic roles & 50–950 ramp
primary
#9D87F2
secondary
#EEF4D7
accent
#DD09B1
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85