#CD87E5#CD87E5
#CD87E5 is a light, vivid purple. Relative luminance 0.360; OKLCH L 72.8% C 0.150 H 317.1°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).
Color values
| HEX | #CD87E5 |
|---|---|
| RGB | rgb(205, 135, 229) |
| HSL | hsl(285, 64%, 71%) |
| HSV | hsv(285, 41%, 90%) |
| CMYK | cmyk(10.5%, 41%, 0%, 10.2%) |
| CIE-LAB | lab(66.49, 42.55, -37.13) |
| CIE-LCH | lch(66.49, 56.47, 318.89°) |
| OKLab | oklab(72.84% 0.1102 -0.1024) |
| OKLCH | oklch(72.84% 0.15 317.1) |
| XYZ | xyz(47.9816, 35.9656, 78.5280) |
| Luminance | 0.3596 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Lavender Pink
#DD85D7
ΔE00 4.98
Liliac
#C48EFD
ΔE00 5.39
Violet (CSS)
#EE82EE
ΔE00 5.67
Baby Purple
#CA9BF7
ΔE00 5.77
Pale Purple
#B790D4
ΔE00 5.82
Orchid
#DA70D6
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CD87E5 #9FE587
analogous
#9E87E5 #CD87E5 #E587CE
triadic
#CD87E5 #E5CD87 #87E5CD
tetradic
#CD87E5 #E59E87 #9FE587 #87CEE5
square
#CD87E5 #E59E87 #9FE587 #87CEE5
split-complementary
#CD87E5 #CEE587 #87E59E
monochromatic
#9F2BC7 #B855DA #CD87E5 #E2B9F0 #F5E6FA
Accessibility & contrast
On white
2.56
#CD87E5 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.19
#CD87E5 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CD87E5
8.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CD87E5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CD87E5 | 1.00 | 2.56 | 8.19 | 8.19 |
| #FFFFFF | 2.56 | 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)
#789DE8
Deuteranopia (green-blind)
#8AA4E2
Tritanopia (blue-blind)
#CD93AB
Achromatopsia (no color)
#A2A2A2
Design tokens & code
CSS
--color: #cd87e5; /* rgb */ color: rgb(205, 135, 229); /* oklch */ color: oklch(72.8% 0.150 317.1);
Tailwind
colors: {
custom: {
50: '#deabed',
500: '#cd87e5',
950: '#000000',
},
}SCSS
$custom: #cd87e5; $custom-light: #deabed; $custom-dark: #000000;
JSON
{
"hex": "#cd87e5",
"rgb": {
"r": 205,
"g": 135,
"b": 229
},
"hsl": {
"h": 284.681,
"s": 64.384,
"l": 71.373
},
"oklch": {
"l": 0.72842,
"c": 0.15044,
"h": 317.1
},
"luminance": 0.35964
}Semantic roles & 50–950 ramp
primary
#CD87E5
secondary
#DEF0D8
accent
#CC1947
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84