#CD7DEC#CD7DEC
#CD7DEC is a light, vivid purple. Relative luminance 0.337; OKLCH L 71.6% C 0.175 H 315.9°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).
Color values
| HEX | #CD7DEC |
|---|---|
| RGB | rgb(205, 125, 236) |
| HSL | hsl(283, 74%, 71%) |
| HSV | hsv(283, 47%, 93%) |
| CMYK | cmyk(13.1%, 47%, 0%, 7.5%) |
| CIE-LAB | lab(64.73, 49.24, -43.76) |
| CIE-LCH | lch(64.73, 65.87, 318.37°) |
| OKLab | oklab(71.62% 0.1254 -0.1214) |
| OKLCH | oklch(71.62% 0.175 315.9) |
| XYZ | xyz(47.6485, 33.7039, 83.3361) |
| Luminance | 0.3370 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Light Purple
#BF77F6
ΔE00 4.02
Easter Purple
#C071FE
ΔE00 5.36
Liliac
#C48EFD
ΔE00 5.41
Orchid
#DA70D6
ΔE00 5.60
Violet (CSS)
#EE82EE
ΔE00 6.19
Lavender Pink
#DD85D7
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CD7DEC #9CEC7D
analogous
#957DEC #CD7DEC #EC7DD4
triadic
#CD7DEC #ECCD7D #7DECCD
tetradic
#CD7DEC #EC957D #9CEC7D #7DD4EC
square
#CD7DEC #EC957D #9CEC7D #7DD4EC
split-complementary
#CD7DEC #D4EC7D #7DEC95
monochromatic
#9F1ED0 #B848E4 #CD7DEC #E2B2F4 #F5E4FB
Accessibility & contrast
On white
2.71
#CD7DEC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.74
#CD7DEC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CD7DEC
7.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CD7DEC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CD7DEC | 1.00 | 2.71 | 7.74 | 7.74 |
| #FFFFFF | 2.71 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6798F0
Deuteranopia (green-blind)
#7E9FE9
Tritanopia (blue-blind)
#CC8DAA
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #cd7dec; /* rgb */ color: rgb(205, 125, 236); /* oklch */ color: oklch(71.6% 0.175 315.9);
Tailwind
colors: {
custom: {
50: '#dea5f2',
500: '#cd7dec',
950: '#000000',
},
}SCSS
$custom: #cd7dec; $custom-light: #dea5f2; $custom-dark: #000000;
JSON
{
"hex": "#cd7dec",
"rgb": {
"r": 205,
"g": 125,
"b": 236
},
"hsl": {
"h": 283.243,
"s": 74.497,
"l": 70.784
},
"oklch": {
"l": 0.71624,
"c": 0.17457,
"h": 315.9
},
"luminance": 0.33702
}Semantic roles & 50–950 ramp
primary
#CD7DEC
secondary
#DCF1D3
accent
#D70F47
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85