#9A87F7#9A87F7
#9A87F7 is a light, vivid violet. Relative luminance 0.309; OKLCH L 68.9% C 0.161 H 289.3°. Best body text is #000000 at 7.18:1 contrast (WCAG AA passes).
Color values
| HEX | #9A87F7 |
|---|---|
| RGB | rgb(154, 135, 247) |
| HSL | hsl(250, 88%, 75%) |
| HSV | hsv(250, 45%, 97%) |
| CMYK | cmyk(37.7%, 45.3%, 0%, 3.1%) |
| CIE-LAB | lab(62.43, 32.75, -53.78) |
| CIE-LCH | lch(62.43, 62.97, 301.34°) |
| OKLab | oklab(68.92% 0.0531 -0.1518) |
| OKLCH | oklch(68.92% 0.161 289.3) |
| XYZ | xyz(38.7743, 30.9122, 91.9014) |
| Luminance | 0.3091 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 2.84
Lavender Blue
#8B88F8
ΔE00 3.20
Perrywinkle
#8F8CE7
ΔE00 3.77
Periwinkle Blue
#8F99FB
ΔE00 6.67
Mediumpurple
#9370DB
ΔE00 7.63
Liliac
#C48EFD
ΔE00 8.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A87F7 #E4F787
analogous
#87ACF7 #9A87F7 #D287F7
triadic
#9A87F7 #F79A87 #87F79A
tetradic
#9A87F7 #F787AC #E4F787 #87F7D2
square
#9A87F7 #F787AC #E4F787 #87F7D2
split-complementary
#9A87F7 #F7D287 #ACF787
monochromatic
#3914EF #6A4EF3 #9A87F7 #CAC0FB #E7E2FD
Accessibility & contrast
On white
2.92
#9A87F7 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.18
#9A87F7 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #9A87F7
7.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A87F7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9A87F7 | 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)
#5F99FB
Deuteranopia (green-blind)
#5F94F4
Tritanopia (blue-blind)
#819DB3
Achromatopsia (no color)
#979797
Design tokens & code
CSS
--color: #9a87f7; /* rgb */ color: rgb(154, 135, 247); /* oklch */ color: oklch(68.9% 0.161 289.3);
Tailwind
colors: {
custom: {
50: '#bbaafa',
500: '#9a87f7',
950: '#000000',
},
}SCSS
$custom: #9a87f7; $custom-light: #bbaafa; $custom-dark: #000000;
JSON
{
"hex": "#9a87f7",
"rgb": {
"r": 154,
"g": 135,
"b": 247
},
"hsl": {
"h": 250.179,
"s": 87.5,
"l": 74.902
},
"oklch": {
"l": 0.68924,
"c": 0.16082,
"h": 289.3
},
"luminance": 0.30913
}Semantic roles & 50–950 ramp
primary
#9A87F7
secondary
#F0F5D6
accent
#E401BE
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85