#987ACC#987ACC
#987ACC is a light, vivid violet. Relative luminance 0.250; OKLCH L 64.1% C 0.123 H 299.8°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).
Color values
| HEX | #987ACC |
|---|---|
| RGB | rgb(152, 122, 204) |
| HSL | hsl(262, 45%, 64%) |
| HSV | hsv(262, 40%, 80%) |
| CMYK | cmyk(25.5%, 40.2%, 0%, 20%) |
| CIE-LAB | lab(57.03, 28.66, -38.33) |
| CIE-LCH | lch(57.03, 47.87, 306.79°) |
| OKLab | oklab(64.1% 0.0612 -0.1069) |
| OKLCH | oklch(64.1% 0.123 299.8) |
| XYZ | xyz(30.8050, 24.9539, 60.3087) |
| Luminance | 0.2495 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lilac
#966EBD
ΔE00 4.39
Mediumpurple
#9370DB
ΔE00 4.61
Wisteria
#A87DC2
ΔE00 5.17
Soft Purple
#A66FB5
ΔE00 7.34
Perrywinkle
#8F8CE7
ΔE00 8.22
Light Urple
#B36FF6
ΔE00 8.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987ACC #AECC7A
analogous
#7A85CC #987ACC #C17ACC
triadic
#987ACC #CC987A #7ACC98
tetradic
#987ACC #CC7A85 #AECC7A #7ACCC1
square
#987ACC #CC7A85 #AECC7A #7ACCC1
split-complementary
#987ACC #CCC17A #85CC7A
monochromatic
#5A3893 #764EBB #987ACC #BAA6DD #DDD2EE
Accessibility & contrast
On white
3.51
#987ACC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.99
#987ACC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987ACC
5.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987ACC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987ACC | 1.00 | 3.51 | 5.99 | 5.99 |
| #FFFFFF | 3.51 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.99 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.99 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6589CF
Deuteranopia (green-blind)
#6A88CA
Tritanopia (blue-blind)
#8E8899
Achromatopsia (no color)
#898989
Design tokens & code
CSS
--color: #987acc; /* rgb */ color: rgb(152, 122, 204); /* oklch */ color: oklch(64.1% 0.123 299.8);
Tailwind
colors: {
custom: {
50: '#b8a1dc',
500: '#987acc',
950: '#000000',
},
}SCSS
$custom: #987acc; $custom-light: #b8a1dc; $custom-dark: #000000;
JSON
{
"hex": "#987acc",
"rgb": {
"r": 152,
"g": 122,
"b": 204
},
"hsl": {
"h": 261.951,
"s": 44.565,
"l": 63.922
},
"oklch": {
"l": 0.64103,
"c": 0.12316,
"h": 299.8
},
"luminance": 0.24954
}Semantic roles & 50–950 ramp
primary
#987ACC
secondary
#D5DFC3
accent
#B82E85
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110F15
muted
#807E83