#CD87E1#CD87E1
#CD87E1 is a light, vivid purple. Relative luminance 0.357; OKLCH L 72.7% C 0.146 H 318.5°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).
Color values
| HEX | #CD87E1 |
|---|---|
| RGB | rgb(205, 135, 225) |
| HSL | hsl(287, 60%, 71%) |
| HSV | hsv(287, 40%, 88%) |
| CMYK | cmyk(8.9%, 40%, 0%, 11.8%) |
| CIE-LAB | lab(66.32, 41.74, -35.18) |
| CIE-LCH | lch(66.32, 54.59, 319.88°) |
| OKLab | oklab(72.66% 0.1095 -0.0968) |
| OKLCH | oklch(72.66% 0.146 318.5) |
| XYZ | xyz(47.4296, 35.7447, 75.6205) |
| Luminance | 0.3574 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Lavender Pink
#DD85D7
ΔE00 4.39
Pale Purple
#B790D4
ΔE00 5.60
Violet (CSS)
#EE82EE
ΔE00 5.62
Orchid
#DA70D6
ΔE00 5.86
Liliac
#C48EFD
ΔE00 6.09
Baby Purple
#CA9BF7
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CD87E1 #9BE187
analogous
#A087E1 #CD87E1 #E187C8
triadic
#CD87E1 #E1CD87 #87E1CD
tetradic
#CD87E1 #E1A087 #9BE187 #87C8E1
square
#CD87E1 #E1A087 #9BE187 #87C8E1
split-complementary
#CD87E1 #C8E187 #87E1A0
monochromatic
#9E30BE #B956D5 #CD87E1 #E1B8ED #F5E7F9
Accessibility & contrast
On white
2.58
#CD87E1 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.15
#CD87E1 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CD87E1
8.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CD87E1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CD87E1 | 1.00 | 2.58 | 8.15 | 8.15 |
| #FFFFFF | 2.58 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.15 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.15 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7A9DE4
Deuteranopia (green-blind)
#8CA4DE
Tritanopia (blue-blind)
#CD92A9
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #cd87e1; /* rgb */ color: rgb(205, 135, 225); /* oklch */ color: oklch(72.7% 0.146 318.5);
Tailwind
colors: {
custom: {
50: '#ddabea',
500: '#cd87e1',
950: '#000000',
},
}SCSS
$custom: #cd87e1; $custom-light: #ddabea; $custom-dark: #000000;
JSON
{
"hex": "#cd87e1",
"rgb": {
"r": 205,
"g": 135,
"b": 225
},
"hsl": {
"h": 286.667,
"s": 60,
"l": 70.588
},
"oklch": {
"l": 0.7266,
"c": 0.1461,
"h": 318.5
},
"luminance": 0.35743
}Semantic roles & 50–950 ramp
primary
#CD87E1
secondary
#DBEED6
accent
#C81E44
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84