#D87EF2#D87EF2
#D87EF2 is a light, vivid purple. Relative luminance 0.359; OKLCH L 73.3% C 0.184 H 318.3°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).
Color values
| HEX | #D87EF2 |
|---|---|
| RGB | rgb(216, 126, 242) |
| HSL | hsl(287, 82%, 72%) |
| HSV | hsv(287, 48%, 95%) |
| CMYK | cmyk(10.7%, 47.9%, 0%, 5.1%) |
| CIE-LAB | lab(66.47, 52.96, -44.25) |
| CIE-LCH | lch(66.47, 69.01, 320.12°) |
| OKLab | oklab(73.29% 0.1377 -0.1226) |
| OKLCH | oklch(73.29% 0.184 318.3) |
| XYZ | xyz(51.8046, 35.9332, 88.1941) |
| Luminance | 0.3593 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 4.57
Purply Pink
#F075E6
ΔE00 5.35
Light Purple
#BF77F6
ΔE00 5.37
Orchid
#DA70D6
ΔE00 5.44
Liliac
#C48EFD
ΔE00 5.97
Lavender Pink
#DD85D7
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D87EF2 #98F27E
analogous
#9E7EF2 #D87EF2 #F27ED2
triadic
#D87EF2 #F2D87E #7EF2D8
tetradic
#D87EF2 #F29E7E #98F27E #7ED2F2
square
#D87EF2 #F29E7E #98F27E #7ED2F2
split-complementary
#D87EF2 #D2F27E #7EF29E
monochromatic
#B216DF #C746EC #D87EF2 #E9B6F8 #F7E3FC
Accessibility & contrast
On white
2.57
#D87EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.19
#D87EF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D87EF2
8.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D87EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D87EF2 | 1.00 | 2.57 | 8.19 | 8.19 |
| #FFFFFF | 2.57 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.19 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.19 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#699CF6
Deuteranopia (green-blind)
#84A5EF
Tritanopia (blue-blind)
#D88EAD
Achromatopsia (no color)
#A2A2A2
Design tokens & code
CSS
--color: #d87ef2; /* rgb */ color: rgb(216, 126, 242); /* oklch */ color: oklch(73.3% 0.184 318.3);
Tailwind
colors: {
custom: {
50: '#e6a6f7',
500: '#d87ef2',
950: '#000000',
},
}SCSS
$custom: #d87ef2; $custom-light: #e6a6f7; $custom-dark: #000000;
JSON
{
"hex": "#d87ef2",
"rgb": {
"r": 216,
"g": 126,
"b": 242
},
"hsl": {
"h": 286.552,
"s": 81.69,
"l": 72.157
},
"oklch": {
"l": 0.73285,
"c": 0.18433,
"h": 318.3
},
"luminance": 0.35931
}Semantic roles & 50–950 ramp
primary
#D87EF2
secondary
#DDF4D7
accent
#DE0738
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#161017
muted
#847F85