#CD87E4#CD87E4
#CD87E4 is a light, vivid purple. Relative luminance 0.359; OKLCH L 72.8% C 0.149 H 317.5°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).
Color values
| HEX | #CD87E4 |
|---|---|
| RGB | rgb(205, 135, 228) |
| HSL | hsl(285, 63%, 71%) |
| HSV | hsv(285, 41%, 89%) |
| CMYK | cmyk(10.1%, 40.8%, 0%, 10.6%) |
| CIE-LAB | lab(66.45, 42.34, -36.64) |
| CIE-LCH | lch(66.45, 56.00, 319.13°) |
| OKLab | oklab(72.8% 0.1101 -0.101) |
| OKLCH | oklch(72.8% 0.149 317.5) |
| XYZ | xyz(47.8424, 35.9099, 77.7948) |
| Luminance | 0.3591 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Lavender Pink
#DD85D7
ΔE00 4.83
Liliac
#C48EFD
ΔE00 5.56
Violet (CSS)
#EE82EE
ΔE00 5.65
Pale Purple
#B790D4
ΔE00 5.76
Baby Purple
#CA9BF7
ΔE00 5.86
Orchid
#DA70D6
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CD87E4 #9EE487
analogous
#9E87E4 #CD87E4 #E487CC
triadic
#CD87E4 #E4CD87 #87E4CD
tetradic
#CD87E4 #E49E87 #9EE487 #87CCE4
square
#CD87E4 #E49E87 #9EE487 #87CCE4
split-complementary
#CD87E4 #CCE487 #87E49E
monochromatic
#9F2CC4 #B855D9 #CD87E4 #E2B9EF #F5E6F9
Accessibility & contrast
On white
2.57
#CD87E4 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.18
#CD87E4 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CD87E4
8.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CD87E4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CD87E4 | 1.00 | 2.57 | 8.18 | 8.18 |
| #FFFFFF | 2.57 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.18 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.18 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#789DE7
Deuteranopia (green-blind)
#8AA4E1
Tritanopia (blue-blind)
#CD93AB
Achromatopsia (no color)
#A2A2A2
Design tokens & code
CSS
--color: #cd87e4; /* rgb */ color: rgb(205, 135, 228); /* oklch */ color: oklch(72.8% 0.149 317.5);
Tailwind
colors: {
custom: {
50: '#deabed',
500: '#cd87e4',
950: '#000000',
},
}SCSS
$custom: #cd87e4; $custom-light: #deabed; $custom-dark: #000000;
JSON
{
"hex": "#cd87e4",
"rgb": {
"r": 205,
"g": 135,
"b": 228
},
"hsl": {
"h": 285.161,
"s": 63.265,
"l": 71.176
},
"oklch": {
"l": 0.72796,
"c": 0.14935,
"h": 317.5
},
"luminance": 0.35909
}Semantic roles & 50–950 ramp
primary
#CD87E4
secondary
#DDF0D7
accent
#CB1A46
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84