#9F87F2#9F87F2
#9F87F2 is a light, vivid violet. Relative luminance 0.311; OKLCH L 69.1% C 0.154 H 292.2°. Best body text is #000000 at 7.22:1 contrast (WCAG AA passes).
Color values
| HEX | #9F87F2 |
|---|---|
| RGB | rgb(159, 135, 242) |
| HSL | hsl(253, 80%, 74%) |
| HSV | hsv(253, 44%, 95%) |
| CMYK | cmyk(34.3%, 44.2%, 0%, 5.1%) |
| CIE-LAB | lab(62.60, 32.71, -50.74) |
| CIE-LCH | lch(62.60, 60.36, 302.81°) |
| OKLab | oklab(69.07% 0.0583 -0.1428) |
| OKLCH | oklch(69.07% 0.154 292.2) |
| XYZ | xyz(38.9849, 31.1088, 87.9378) |
| Luminance | 0.3111 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 4.18
Perrywinkle
#8F8CE7
ΔE00 4.28
Lavender Blue
#8B88F8
ΔE00 4.54
Liliac
#C48EFD
ΔE00 7.11
Mediumpurple
#9370DB
ΔE00 7.24
Periwinkle Blue
#8F99FB
ΔE00 7.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F87F2 #DAF287
analogous
#87A5F2 #9F87F2 #D587F2
triadic
#9F87F2 #F29F87 #87F29F
tetradic
#9F87F2 #F287A5 #DAF287 #87F2D5
square
#9F87F2 #F287A5 #DAF287 #87F2D5
split-complementary
#9F87F2 #F2D587 #A5F287
monochromatic
#4719E6 #7350EC #9F87F2 #CBBEF8 #E9E3FC
Accessibility & contrast
On white
2.91
#9F87F2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.22
#9F87F2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #9F87F2
7.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F87F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9F87F2 | 1.00 | 2.91 | 7.22 | 7.22 |
| #FFFFFF | 2.91 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.22 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.22 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6399F6
Deuteranopia (green-blind)
#6695EF
Tritanopia (blue-blind)
#8B9BB1
Achromatopsia (no color)
#979797
Design tokens & code
CSS
--color: #9f87f2; /* rgb */ color: rgb(159, 135, 242); /* oklch */ color: oklch(69.1% 0.154 292.2);
Tailwind
colors: {
custom: {
50: '#beaaf7',
500: '#9f87f2',
950: '#000000',
},
}SCSS
$custom: #9f87f2; $custom-light: #beaaf7; $custom-dark: #000000;
JSON
{
"hex": "#9f87f2",
"rgb": {
"r": 159,
"g": 135,
"b": 242
},
"hsl": {
"h": 253.458,
"s": 80.451,
"l": 73.922
},
"oklch": {
"l": 0.69068,
"c": 0.15422,
"h": 292.2
},
"luminance": 0.3111
}Semantic roles & 50–950 ramp
primary
#9F87F2
secondary
#EDF4D7
accent
#DD09AD
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#121017
muted
#817F85