#CD7DEF#CD7DEF
#CD7DEF is a light, vivid purple. Relative luminance 0.339; OKLCH L 71.8% C 0.178 H 315.1°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).
Color values
| HEX | #CD7DEF |
|---|---|
| RGB | rgb(205, 125, 239) |
| HSL | hsl(282, 78%, 71%) |
| HSV | hsv(282, 48%, 94%) |
| CMYK | cmyk(14.2%, 47.7%, 0%, 6.3%) |
| CIE-LAB | lab(64.87, 49.85, -45.20) |
| CIE-LCH | lch(64.87, 67.29, 317.80°) |
| OKLab | oklab(71.77% 0.1258 -0.1256) |
| OKLCH | oklch(71.77% 0.178 315.1) |
| XYZ | xyz(48.0880, 33.8797, 85.6509) |
| Luminance | 0.3388 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Light Purple
#BF77F6
ΔE00 3.67
Easter Purple
#C071FE
ΔE00 4.98
Liliac
#C48EFD
ΔE00 5.13
Orchid
#DA70D6
ΔE00 6.01
Violet (CSS)
#EE82EE
ΔE00 6.40
Light Urple
#B36FF6
ΔE00 6.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CD7DEF #9FEF7D
analogous
#947DEF #CD7DEF #EF7DD8
triadic
#CD7DEF #EFCD7D #7DEFCD
tetradic
#CD7DEF #EF947D #9FEF7D #7DD8EF
square
#CD7DEF #EF947D #9FEF7D #7DD8EF
split-complementary
#CD7DEF #D8EF7D #7DEF94
monochromatic
#9F1AD7 #B847E8 #CD7DEF #E2B3F6 #F5E4FC
Accessibility & contrast
On white
2.70
#CD7DEF on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.78
#CD7DEF on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CD7DEF
7.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CD7DEF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CD7DEF | 1.00 | 2.70 | 7.78 | 7.78 |
| #FFFFFF | 2.70 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.78 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.78 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6699F3
Deuteranopia (green-blind)
#7DA0EC
Tritanopia (blue-blind)
#CB8EAB
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #cd7def; /* rgb */ color: rgb(205, 125, 239); /* oklch */ color: oklch(71.8% 0.178 315.1);
Tailwind
colors: {
custom: {
50: '#dea5f4',
500: '#cd7def',
950: '#000000',
},
}SCSS
$custom: #cd7def; $custom-light: #dea5f4; $custom-dark: #000000;
JSON
{
"hex": "#cd7def",
"rgb": {
"r": 205,
"g": 125,
"b": 239
},
"hsl": {
"h": 282.105,
"s": 78.082,
"l": 71.373
},
"oklch": {
"l": 0.71774,
"c": 0.17776,
"h": 315.1
},
"luminance": 0.33878
}Semantic roles & 50–950 ramp
primary
#CD7DEF
secondary
#DEF3D5
accent
#DA0B49
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85