#9D87F0#9D87F0
#9D87F0 is a light, vivid violet. Relative luminance 0.308; OKLCH L 68.8% C 0.151 H 291.5°. Best body text is #000000 at 7.16:1 contrast (WCAG AA passes).
Color values
| HEX | #9D87F0 |
|---|---|
| RGB | rgb(157, 135, 240) |
| HSL | hsl(253, 78%, 74%) |
| HSV | hsv(253, 44%, 94%) |
| CMYK | cmyk(34.6%, 43.8%, 0%, 5.9%) |
| CIE-LAB | lab(62.33, 31.67, -50.08) |
| CIE-LCH | lch(62.33, 59.25, 302.31°) |
| OKLab | oklab(68.79% 0.0556 -0.1409) |
| OKLCH | oklch(68.79% 0.151 291.5) |
| XYZ | xyz(38.2927, 30.7864, 86.3460) |
| Luminance | 0.3079 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Perrywinkle
#8F8CE7
ΔE00 3.88
Periwinkle (survey)
#8E82FE
ΔE00 4.06
Lavender Blue
#8B88F8
ΔE00 4.28
Mediumpurple
#9370DB
ΔE00 7.14
Periwinkle Blue
#8F99FB
ΔE00 7.37
Liliac
#C48EFD
ΔE00 7.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D87F0 #DAF087
analogous
#87A5F0 #9D87F0 #D187F0
triadic
#9D87F0 #F09D87 #87F09D
tetradic
#9D87F0 #F087A5 #DAF087 #87F0D1
square
#9D87F0 #F087A5 #DAF087 #87F0D1
split-complementary
#9D87F0 #F0D187 #A5F087
monochromatic
#451CE1 #7151E9 #9D87F0 #C9BDF7 #E9E4FC
Accessibility & contrast
On white
2.93
#9D87F0 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.16
#9D87F0 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #9D87F0
7.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D87F0 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D87F0 | 1.00 | 2.93 | 7.16 | 7.16 |
| #FFFFFF | 2.93 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.16 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.16 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6498F4
Deuteranopia (green-blind)
#6695ED
Tritanopia (blue-blind)
#899BB0
Achromatopsia (no color)
#979797
Design tokens & code
CSS
--color: #9d87f0; /* rgb */ color: rgb(157, 135, 240); /* oklch */ color: oklch(68.8% 0.151 291.5);
Tailwind
colors: {
custom: {
50: '#bdaaf5',
500: '#9d87f0',
950: '#000000',
},
}SCSS
$custom: #9d87f0; $custom-light: #bdaaf5; $custom-dark: #000000;
JSON
{
"hex": "#9d87f0",
"rgb": {
"r": 157,
"g": 135,
"b": 240
},
"hsl": {
"h": 252.571,
"s": 77.778,
"l": 73.529
},
"oklch": {
"l": 0.68788,
"c": 0.15149,
"h": 291.5
},
"luminance": 0.30787
}Semantic roles & 50–950 ramp
primary
#9D87F0
secondary
#EEF3D8
accent
#DA0BAF
background
#FBFAFF
surface
#F7F4FE
border
#D0CED6
text
#121017
muted
#817F85