#D87DF2#D87DF2
#D87DF2 is a light, vivid purple. Relative luminance 0.357; OKLCH L 73.1% C 0.186 H 318.4°. Best body text is #000000 at 8.14:1 contrast (WCAG AA passes).
Color values
| HEX | #D87DF2 |
|---|---|
| RGB | rgb(216, 125, 242) |
| HSL | hsl(287, 82%, 72%) |
| HSV | hsv(287, 48%, 95%) |
| CMYK | cmyk(10.7%, 48.3%, 0%, 5.1%) |
| CIE-LAB | lab(66.27, 53.46, -44.55) |
| CIE-LCH | lch(66.27, 69.59, 320.19°) |
| OKLab | oklab(73.14% 0.139 -0.1235) |
| OKLCH | oklch(73.14% 0.186 318.4) |
| XYZ | xyz(51.6774, 35.6788, 88.1517) |
| Luminance | 0.3568 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 4.65
Light Purple
#BF77F6
ΔE00 5.28
Purply Pink
#F075E6
ΔE00 5.33
Orchid
#DA70D6
ΔE00 5.35
Liliac
#C48EFD
ΔE00 6.08
Lavender Pink
#DD85D7
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D87DF2 #97F27D
analogous
#9E7DF2 #D87DF2 #F27DD1
triadic
#D87DF2 #F2D87D #7DF2D8
tetradic
#D87DF2 #F29E7D #97F27D #7DD1F2
square
#D87DF2 #F29E7D #97F27D #7DD1F2
split-complementary
#D87DF2 #D1F27D #7DF29E
monochromatic
#B216DE #C745EC #D87DF2 #E9B5F8 #F7E3FC
Accessibility & contrast
On white
2.58
#D87DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.14
#D87DF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D87DF2
8.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D87DF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D87DF2 | 1.00 | 2.58 | 8.14 | 8.14 |
| #FFFFFF | 2.58 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.14 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.14 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#689BF6
Deuteranopia (green-blind)
#83A4EF
Tritanopia (blue-blind)
#D88DAC
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #d87df2; /* rgb */ color: rgb(216, 125, 242); /* oklch */ color: oklch(73.1% 0.186 318.4);
Tailwind
colors: {
custom: {
50: '#e6a5f7',
500: '#d87df2',
950: '#000000',
},
}SCSS
$custom: #d87df2; $custom-light: #e6a5f7; $custom-dark: #000000;
JSON
{
"hex": "#d87df2",
"rgb": {
"r": 216,
"g": 125,
"b": 242
},
"hsl": {
"h": 286.667,
"s": 81.818,
"l": 71.961
},
"oklch": {
"l": 0.73141,
"c": 0.18593,
"h": 318.4
},
"luminance": 0.35677
}Semantic roles & 50–950 ramp
primary
#D87DF2
secondary
#DDF4D7
accent
#DE0737
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#160F17
muted
#847F85