#D987FF#D987FF
#D987FF is a light, vivid purple. Relative luminance 0.393; OKLCH L 75.4% C 0.184 H 314.2°. Best body text is #000000 at 8.86:1 contrast (WCAG AA passes).
Color values
| HEX | #D987FF |
|---|---|
| RGB | rgb(217, 135, 255) |
| HSL | hsl(281, 100%, 76%) |
| HSV | hsv(281, 47%, 100%) |
| CMYK | cmyk(14.9%, 47.1%, 0%, 0%) |
| CIE-LAB | lab(68.97, 51.23, -47.43) |
| CIE-LCH | lch(68.97, 69.82, 317.21°) |
| OKLab | oklab(75.36% 0.1284 -0.1318) |
| OKLCH | oklch(75.36% 0.184 314.2) |
| XYZ | xyz(55.3263, 39.3011, 99.2597) |
| Luminance | 0.3930 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Liliac
#C48EFD
ΔE00 4.28
Violet (CSS)
#EE82EE
ΔE00 5.59
Light Purple
#BF77F6
ΔE00 5.86
Baby Purple
#CA9BF7
ΔE00 5.88
Easter Purple
#C071FE
ΔE00 6.85
Pastel Purple
#CAA0FF
ΔE00 6.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D987FF #ADFF87
analogous
#9D87FF #D987FF #FF87E9
triadic
#D987FF #FFD987 #87FFD9
tetradic
#D987FF #FF9D87 #ADFF87 #87E9FF
square
#D987FF #FF9D87 #ADFF87 #87E9FF
split-complementary
#D987FF #E9FF87 #87FF9D
monochromatic
#B20DFF #C64AFF #D987FF #ECC4FF #F5E0FF
Accessibility & contrast
On white
2.37
#D987FF on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.86
#D987FF on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D987FF
8.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D987FF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D987FF | 1.00 | 2.37 | 8.86 | 8.86 |
| #FFFFFF | 2.37 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.86 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.86 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6EA4FF
Deuteranopia (green-blind)
#85ABFC
Tritanopia (blue-blind)
#D699B7
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #d987ff; /* rgb */ color: rgb(217, 135, 255); /* oklch */ color: oklch(75.4% 0.184 314.2);
Tailwind
colors: {
custom: {
50: '#e7acff',
500: '#d987ff',
950: '#000000',
},
}SCSS
$custom: #d987ff; $custom-light: #e7acff; $custom-dark: #000000;
JSON
{
"hex": "#d987ff",
"rgb": {
"r": 217,
"g": 135,
"b": 255
},
"hsl": {
"h": 281,
"s": 100,
"l": 76.471
},
"oklch": {
"l": 0.75364,
"c": 0.184,
"h": 314.2
},
"luminance": 0.393
}Semantic roles & 50–950 ramp
primary
#D987FF
secondary
#DFF7D4
accent
#E60049
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161018
muted
#847F86