#9A87F2#9A87F2
#9A87F2 is a light, vivid violet. Relative luminance 0.306; OKLCH L 68.6% C 0.154 H 289.9°. Best body text is #000000 at 7.12:1 contrast (WCAG AA passes).
Color values
| HEX | #9A87F2 |
|---|---|
| RGB | rgb(154, 135, 242) |
| HSL | hsl(251, 80%, 74%) |
| HSV | hsv(251, 44%, 95%) |
| CMYK | cmyk(36.4%, 44.2%, 0%, 5.1%) |
| CIE-LAB | lab(62.18, 31.42, -51.44) |
| CIE-LCH | lch(62.18, 60.27, 301.42°) |
| OKLab | oklab(68.65% 0.0524 -0.145) |
| OKLCH | oklch(68.65% 0.154 289.9) |
| XYZ | xyz(38.0131, 30.6078, 87.8923) |
| Luminance | 0.3061 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 3.34
Perrywinkle
#8F8CE7
ΔE00 3.45
Lavender Blue
#8B88F8
ΔE00 3.50
Periwinkle Blue
#8F99FB
ΔE00 6.84
Mediumpurple
#9370DB
ΔE00 7.30
Liliac
#C48EFD
ΔE00 8.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A87F2 #DFF287
analogous
#87AAF2 #9A87F2 #D087F2
triadic
#9A87F2 #F29A87 #87F29A
tetradic
#9A87F2 #F287AA #DFF287 #87F2D0
square
#9A87F2 #F287AA #DFF287 #87F2D0
split-complementary
#9A87F2 #F2D087 #AAF287
monochromatic
#3D19E6 #6C50EC #9A87F2 #C8BEF8 #E8E3FC
Accessibility & contrast
On white
2.95
#9A87F2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.12
#9A87F2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #9A87F2
7.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A87F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9A87F2 | 1.00 | 2.95 | 7.12 | 7.12 |
| #FFFFFF | 2.95 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.12 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.12 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6298F6
Deuteranopia (green-blind)
#6394EF
Tritanopia (blue-blind)
#839CB1
Achromatopsia (no color)
#969696
Design tokens & code
CSS
--color: #9a87f2; /* rgb */ color: rgb(154, 135, 242); /* oklch */ color: oklch(68.6% 0.154 289.9);
Tailwind
colors: {
custom: {
50: '#bbaaf7',
500: '#9a87f2',
950: '#000000',
},
}SCSS
$custom: #9a87f2; $custom-light: #bbaaf7; $custom-dark: #000000;
JSON
{
"hex": "#9a87f2",
"rgb": {
"r": 154,
"g": 135,
"b": 242
},
"hsl": {
"h": 250.654,
"s": 80.451,
"l": 73.922
},
"oklch": {
"l": 0.68645,
"c": 0.15414,
"h": 289.9
},
"luminance": 0.30609
}Semantic roles & 50–950 ramp
primary
#9A87F2
secondary
#EFF4D7
accent
#DD09B7
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85