#DC87F2#DC87F2
#DC87F2 is a light, vivid purple. Relative luminance 0.390; OKLCH L 75.1% C 0.172 H 319.2°. Best body text is #000000 at 8.79:1 contrast (WCAG AA passes).
Color values
| HEX | #DC87F2 |
|---|---|
| RGB | rgb(220, 135, 242) |
| HSL | hsl(288, 80%, 74%) |
| HSV | hsv(288, 44%, 95%) |
| CMYK | cmyk(9.1%, 44.2%, 0%, 5.1%) |
| CIE-LAB | lab(68.72, 49.47, -40.69) |
| CIE-LCH | lch(68.72, 64.05, 320.56°) |
| OKLab | oklab(75.06% 0.1299 -0.1123) |
| OKLCH | oklch(75.06% 0.172 319.2) |
| XYZ | xyz(54.2041, 38.9562, 88.6512) |
| Luminance | 0.3895 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 3.60
Lavender Pink
#DD85D7
ΔE00 5.17
Purply Pink
#F075E6
ΔE00 5.38
Liliac
#C48EFD
ΔE00 5.88
Orchid
#DA70D6
ΔE00 6.31
Baby Purple
#CA9BF7
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#DC87F2 #9DF287
analogous
#A787F2 #DC87F2 #F287D2
triadic
#DC87F2 #F2DC87 #87F2DC
tetradic
#DC87F2 #F2A787 #9DF287 #87D2F2
square
#DC87F2 #F2A787 #9DF287 #87D2F2
split-complementary
#DC87F2 #D2F287 #87F2A7
monochromatic
#BC19E6 #CC50EC #DC87F2 #ECBEF8 #F7E3FC
Accessibility & contrast
On white
2.39
#DC87F2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.79
#DC87F2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #DC87F2
8.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##DC87F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##DC87F2 | 1.00 | 2.39 | 8.79 | 8.79 |
| #FFFFFF | 2.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.79 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#76A2F6
Deuteranopia (green-blind)
#8EABEF
Tritanopia (blue-blind)
#DD95B1
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #dc87f2; /* rgb */ color: rgb(220, 135, 242); /* oklch */ color: oklch(75.1% 0.172 319.2);
Tailwind
colors: {
custom: {
50: '#e9acf6',
500: '#dc87f2',
950: '#000000',
},
}SCSS
$custom: #dc87f2; $custom-light: #e9acf6; $custom-dark: #000000;
JSON
{
"hex": "#dc87f2",
"rgb": {
"r": 220,
"g": 135,
"b": 242
},
"hsl": {
"h": 287.664,
"s": 80.451,
"l": 73.922
},
"oklch": {
"l": 0.75061,
"c": 0.1717,
"h": 319.2
},
"luminance": 0.38954
}Semantic roles & 50–950 ramp
primary
#DC87F2
secondary
#DDF4D7
accent
#DD0934
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#161017
muted
#847F85