#987CD3#987CD3
#987CD3 is a light, vivid violet. Relative luminance 0.258; OKLCH L 64.8% C 0.129 H 297.5°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).
Color values
| HEX | #987CD3 |
|---|---|
| RGB | rgb(152, 124, 211) |
| HSL | hsl(259, 50%, 66%) |
| HSV | hsv(259, 41%, 83%) |
| CMYK | cmyk(28%, 41.2%, 0%, 17.3%) |
| CIE-LAB | lab(57.84, 29.24, -41.02) |
| CIE-LCH | lch(57.84, 50.37, 305.48°) |
| OKLab | oklab(64.83% 0.0597 -0.1147) |
| OKLCH | oklch(64.83% 0.129 297.5) |
| XYZ | xyz(31.9116, 25.7935, 64.9128) |
| Luminance | 0.2579 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumpurple
#9370DB
ΔE00 4.20
Deep Lilac
#966EBD
ΔE00 5.62
Wisteria
#A87DC2
ΔE00 6.15
Perrywinkle
#8F8CE7
ΔE00 6.99
Light Urple
#B36FF6
ΔE00 7.77
Periwinkle (survey)
#8E82FE
ΔE00 7.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987CD3 #B7D37C
analogous
#7C8BD3 #987CD3 #C37CD3
triadic
#987CD3 #D3987C #7CD398
tetradic
#987CD3 #D37C8B #B7D37C #7CD3C3
square
#987CD3 #D37C8B #B7D37C #7CD3C3
split-complementary
#987CD3 #D3C37C #8BD37C
monochromatic
#57359F #744EC4 #987CD3 #BCAAE2 #E0D8F2
Accessibility & contrast
On white
3.41
#987CD3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.16
#987CD3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987CD3
6.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987CD3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987CD3 | 1.00 | 3.41 | 6.16 | 6.16 |
| #FFFFFF | 3.41 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.16 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.16 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#648BD6
Deuteranopia (green-blind)
#698AD1
Tritanopia (blue-blind)
#8C8B9D
Achromatopsia (no color)
#8B8B8B
Design tokens & code
CSS
--color: #987cd3; /* rgb */ color: rgb(152, 124, 211); /* oklch */ color: oklch(64.8% 0.129 297.5);
Tailwind
colors: {
custom: {
50: '#b8a2e1',
500: '#987cd3',
950: '#000000',
},
}SCSS
$custom: #987cd3; $custom-light: #b8a2e1; $custom-dark: #000000;
JSON
{
"hex": "#987cd3",
"rgb": {
"r": 152,
"g": 124,
"b": 211
},
"hsl": {
"h": 259.31,
"s": 49.714,
"l": 65.686
},
"oklch": {
"l": 0.64825,
"c": 0.12927,
"h": 297.5
},
"luminance": 0.25794
}Semantic roles & 50–950 ramp
primary
#987CD3
secondary
#DBE4C7
accent
#BD288D
background
#FBFAFD
surface
#F6F3FB
border
#D0CDD4
text
#120F15
muted
#817F83