#CD87F6#CD87F6
#CD87F6 is a light, vivid violet. Relative luminance 0.370; OKLCH L 73.7% C 0.169 H 311.9°. Best body text is #000000 at 8.39:1 contrast (WCAG AA passes).
Color values
| HEX | #CD87F6 |
|---|---|
| RGB | rgb(205, 135, 246) |
| HSL | hsl(278, 86%, 75%) |
| HSV | hsv(278, 45%, 96%) |
| CMYK | cmyk(16.7%, 45.1%, 0%, 3.5%) |
| CIE-LAB | lab(67.25, 46.07, -45.30) |
| CIE-LCH | lch(67.25, 64.61, 315.48°) |
| OKLab | oklab(73.66% 0.1131 -0.1259) |
| OKLCH | oklch(73.66% 0.169 311.9) |
| XYZ | xyz(50.4725, 36.9619, 91.6464) |
| Luminance | 0.3696 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 2.99
Light Purple
#BF77F6
ΔE00 4.68
Baby Purple
#CA9BF7
ΔE00 5.10
Easter Purple
#C071FE
ΔE00 6.07
Pastel Purple
#CAA0FF
ΔE00 6.38
Lilac (survey)
#CEA2FD
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CD87F6 #B0F687
analogous
#9687F6 #CD87F6 #F687E8
triadic
#CD87F6 #F6CD87 #87F6CD
tetradic
#CD87F6 #F69687 #B0F687 #87E8F6
square
#CD87F6 #F69687 #B0F687 #87E8F6
split-complementary
#CD87F6 #E8F687 #87F696
monochromatic
#9E15ED #B54EF2 #CD87F6 #E5C0FA #F3E3FD
Accessibility & contrast
On white
2.50
#CD87F6 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.39
#CD87F6 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CD87F6
8.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CD87F6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CD87F6 | 1.00 | 2.50 | 8.39 | 8.39 |
| #FFFFFF | 2.50 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.39 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.39 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6FA0FA
Deuteranopia (green-blind)
#82A5F3
Tritanopia (blue-blind)
#C998B3
Achromatopsia (no color)
#A4A4A4
Design tokens & code
CSS
--color: #cd87f6; /* rgb */ color: rgb(205, 135, 246); /* oklch */ color: oklch(73.7% 0.169 311.9);
Tailwind
colors: {
custom: {
50: '#deabf9',
500: '#cd87f6',
950: '#000000',
},
}SCSS
$custom: #cd87f6; $custom-light: #deabf9; $custom-dark: #000000;
JSON
{
"hex": "#cd87f6",
"rgb": {
"r": 205,
"g": 135,
"b": 246
},
"hsl": {
"h": 277.838,
"s": 86.047,
"l": 74.706
},
"oklch": {
"l": 0.73655,
"c": 0.16928,
"h": 311.9
},
"luminance": 0.36961
}Semantic roles & 50–950 ramp
primary
#CD87F6
secondary
#E1F5D6
accent
#E30356
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85