#987FDA#987FDA
#987FDA is a light, vivid violet. Relative luminance 0.269; OKLCH L 65.7% C 0.134 H 295.1°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).
Color values
| HEX | #987FDA |
|---|---|
| RGB | rgb(152, 127, 218) |
| HSL | hsl(256, 55%, 68%) |
| HSV | hsv(256, 42%, 85%) |
| CMYK | cmyk(30.3%, 41.7%, 0%, 14.5%) |
| CIE-LAB | lab(58.90, 29.27, -43.29) |
| CIE-LCH | lch(58.90, 52.25, 304.06°) |
| OKLab | oklab(65.73% 0.0568 -0.1213) |
| OKLCH | oklch(65.73% 0.134 295.1) |
| XYZ | xyz(33.1900, 26.9156, 69.7627) |
| Luminance | 0.2692 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumpurple
#9370DB
ΔE00 4.58
Perrywinkle
#8F8CE7
ΔE00 5.64
Periwinkle (survey)
#8E82FE
ΔE00 6.55
Lavender Blue
#8B88F8
ΔE00 6.88
Deep Lilac
#966EBD
ΔE00 7.09
Wisteria
#A87DC2
ΔE00 7.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987FDA #C1DA7F
analogous
#7F93DA #987FDA #C67FDA
triadic
#987FDA #DA987F #7FDA98
tetradic
#987FDA #DA7F93 #C1DA7F #7FDAC6
square
#987FDA #DA7F93 #C1DA7F #7FDAC6
split-complementary
#987FDA #DAC67F #93DA7F
monochromatic
#5432AD #7250CC #987FDA #BEAEE8 #E4DEF5
Accessibility & contrast
On white
3.29
#987FDA on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.38
#987FDA on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987FDA
6.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987FDA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987FDA | 1.00 | 3.29 | 6.38 | 6.38 |
| #FFFFFF | 3.29 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.38 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.38 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#648EDD
Deuteranopia (green-blind)
#688CD8
Tritanopia (blue-blind)
#8A8FA2
Achromatopsia (no color)
#8E8E8E
Design tokens & code
CSS
--color: #987fda; /* rgb */ color: rgb(152, 127, 218); /* oklch */ color: oklch(65.7% 0.134 295.1);
Tailwind
colors: {
custom: {
50: '#b8a4e6',
500: '#987fda',
950: '#000000',
},
}SCSS
$custom: #987fda; $custom-light: #b8a4e6; $custom-dark: #000000;
JSON
{
"hex": "#987fda",
"rgb": {
"r": 152,
"g": 127,
"b": 218
},
"hsl": {
"h": 256.484,
"s": 55.152,
"l": 67.647
},
"oklch": {
"l": 0.65734,
"c": 0.13391,
"h": 295.1
},
"luminance": 0.26916
}Semantic roles & 50–950 ramp
primary
#987FDA
secondary
#E1E9CC
accent
#C32397
background
#FBFAFE
surface
#F6F4FC
border
#D0CED5
text
#120F16
muted
#817F84