#D987EC#D987EC
#D987EC is a light, vivid purple. Relative luminance 0.381; OKLCH L 74.5% C 0.164 H 319.9°. Best body text is #000000 at 8.63:1 contrast (WCAG AA passes).
Color values
| HEX | #D987EC |
|---|---|
| RGB | rgb(217, 135, 236) |
| HSL | hsl(289, 73%, 73%) |
| HSV | hsv(289, 43%, 93%) |
| CMYK | cmyk(8.1%, 42.8%, 0%, 7.5%) |
| CIE-LAB | lab(68.12, 47.44, -38.35) |
| CIE-LCH | lch(68.12, 61.00, 321.05°) |
| OKLab | oklab(74.46% 0.1254 -0.1056) |
| OKLCH | oklch(74.46% 0.164 319.9) |
| XYZ | xyz(52.4177, 38.1376, 83.9407) |
| Luminance | 0.3814 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 3.70
Lavender Pink
#DD85D7
ΔE00 4.40
Purply Pink
#F075E6
ΔE00 5.33
Orchid
#DA70D6
ΔE00 5.82
Liliac
#C48EFD
ΔE00 6.13
Baby Purple
#CA9BF7
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D987EC #9AEC87
analogous
#A687EC #D987EC #EC87CC
triadic
#D987EC #ECD987 #87ECD9
tetradic
#D987EC #ECA687 #9AEC87 #87CCEC
square
#D987EC #ECA687 #9AEC87 #87CCEC
split-complementary
#D987EC #CCEC87 #87ECA6
monochromatic
#B522D7 #C852E4 #D987EC #EABCF4 #F7E5FB
Accessibility & contrast
On white
2.43
#D987EC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.63
#D987EC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D987EC
8.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D987EC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D987EC | 1.00 | 2.43 | 8.63 | 8.63 |
| #FFFFFF | 2.43 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.63 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.63 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#78A0F0
Deuteranopia (green-blind)
#8EA9E9
Tritanopia (blue-blind)
#DA94AE
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #d987ec; /* rgb */ color: rgb(217, 135, 236); /* oklch */ color: oklch(74.5% 0.164 319.9);
Tailwind
colors: {
custom: {
50: '#e6acf2',
500: '#d987ec',
950: '#000000',
},
}SCSS
$custom: #d987ec; $custom-light: #e6acf2; $custom-dark: #000000;
JSON
{
"hex": "#d987ec",
"rgb": {
"r": 217,
"g": 135,
"b": 236
},
"hsl": {
"h": 288.713,
"s": 72.662,
"l": 72.745
},
"oklch": {
"l": 0.74455,
"c": 0.16397,
"h": 319.9
},
"luminance": 0.38136
}Semantic roles & 50–950 ramp
primary
#D987EC
secondary
#DDF2D9
accent
#D51136
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#161017
muted
#847F85