#987AFF#987AFF
#987AFF is a light, vivid violet. Relative luminance 0.278; OKLCH L 67.0% C 0.190 H 290.8°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).
Color values
| HEX | #987AFF |
|---|---|
| RGB | rgb(152, 122, 255) |
| HSL | hsl(254, 100%, 74%) |
| HSV | hsv(254, 52%, 100%) |
| CMYK | cmyk(40.4%, 52.2%, 0%, 0%) |
| CIE-LAB | lab(59.72, 41.81, -62.52) |
| CIE-LCH | lch(59.72, 75.22, 303.77°) |
| OKLab | oklab(66.99% 0.0673 -0.1775) |
| OKLCH | oklch(66.99% 0.19 290.8) |
| XYZ | xyz(37.9535, 27.8133, 97.9572) |
| Luminance | 0.2781 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 3.20
Lavender Blue
#8B88F8
ΔE00 5.26
Mediumpurple
#9370DB
ΔE00 5.97
Light Urple
#B36FF6
ΔE00 6.26
Perrywinkle
#8F8CE7
ΔE00 6.93
Mediumslateblue
#7B68EE
ΔE00 7.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987AFF #E1FF7A
analogous
#7A9FFF #987AFF #DB7AFF
triadic
#987AFF #FF987A #7AFF98
tetradic
#987AFF #FF7A9F #E1FF7A #7AFFDB
square
#987AFF #FF7A9F #E1FF7A #7AFFDB
split-complementary
#987AFF #FFDB7A #9FFF7A
monochromatic
#3900FF #693DFF #987AFF #C7B7FF #E7E0FF
Accessibility & contrast
On white
3.20
#987AFF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.56
#987AFF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987AFF
6.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987AFF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987AFF | 1.00 | 3.20 | 6.56 | 6.56 |
| #FFFFFF | 3.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.56 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.56 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3E92FF
Deuteranopia (green-blind)
#428DFC
Tritanopia (blue-blind)
#7C96B1
Achromatopsia (no color)
#909090
Design tokens & code
CSS
--color: #987aff; /* rgb */ color: rgb(152, 122, 255); /* oklch */ color: oklch(67.0% 0.190 290.8);
Tailwind
colors: {
custom: {
50: '#bba1ff',
500: '#987aff',
950: '#000000',
},
}SCSS
$custom: #987aff; $custom-light: #bba1ff; $custom-dark: #000000;
JSON
{
"hex": "#987aff",
"rgb": {
"r": 152,
"g": 122,
"b": 255
},
"hsl": {
"h": 253.534,
"s": 100,
"l": 73.922
},
"oklch": {
"l": 0.66993,
"c": 0.18984,
"h": 290.8
},
"luminance": 0.27814
}Semantic roles & 50–950 ramp
primary
#987AFF
secondary
#EFF7D4
accent
#E600B2
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120F18
muted
#817E86