#9C87F2#9C87F2
#9C87F2 is a light, vivid violet. Relative luminance 0.308; OKLCH L 68.8% C 0.154 H 290.8°. Best body text is #000000 at 7.16:1 contrast (WCAG AA passes).
Color values
| HEX | #9C87F2 |
|---|---|
| RGB | rgb(156, 135, 242) |
| HSL | hsl(252, 80%, 74%) |
| HSV | hsv(252, 44%, 95%) |
| CMYK | cmyk(35.5%, 44.2%, 0%, 5.1%) |
| CIE-LAB | lab(62.34, 31.93, -51.16) |
| CIE-LCH | lch(62.34, 60.31, 301.97°) |
| OKLab | oklab(68.81% 0.0547 -0.1441) |
| OKLCH | oklch(68.81% 0.154 290.8) |
| XYZ | xyz(38.3970, 30.8057, 87.9103) |
| Luminance | 0.3081 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 3.66
Perrywinkle
#8F8CE7
ΔE00 3.77
Lavender Blue
#8B88F8
ΔE00 3.91
Periwinkle Blue
#8F99FB
ΔE00 7.12
Mediumpurple
#9370DB
ΔE00 7.26
Liliac
#C48EFD
ΔE00 7.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9C87F2 #DDF287
analogous
#87A8F2 #9C87F2 #D287F2
triadic
#9C87F2 #F29C87 #87F29C
tetradic
#9C87F2 #F287A8 #DDF287 #87F2D2
square
#9C87F2 #F287A8 #DDF287 #87F2D2
split-complementary
#9C87F2 #F2D287 #A8F287
monochromatic
#4119E6 #6E50EC #9C87F2 #CABEF8 #E8E3FC
Accessibility & contrast
On white
2.93
#9C87F2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.16
#9C87F2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #9C87F2
7.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9C87F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9C87F2 | 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)
#6399F6
Deuteranopia (green-blind)
#6494EF
Tritanopia (blue-blind)
#869CB1
Achromatopsia (no color)
#979797
Design tokens & code
CSS
--color: #9c87f2; /* rgb */ color: rgb(156, 135, 242); /* oklch */ color: oklch(68.8% 0.154 290.8);
Tailwind
colors: {
custom: {
50: '#bcaaf7',
500: '#9c87f2',
950: '#000000',
},
}SCSS
$custom: #9c87f2; $custom-light: #bcaaf7; $custom-dark: #000000;
JSON
{
"hex": "#9c87f2",
"rgb": {
"r": 156,
"g": 135,
"b": 242
},
"hsl": {
"h": 251.776,
"s": 80.451,
"l": 73.922
},
"oklch": {
"l": 0.68813,
"c": 0.15415,
"h": 290.8
},
"luminance": 0.30807
}Semantic roles & 50–950 ramp
primary
#9C87F2
secondary
#EEF4D7
accent
#DD09B3
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85