#CD9CEF#CD9CEF
#CD9CEF is a light, vivid violet. Relative luminance 0.430; OKLCH L 76.8% C 0.126 H 310.7°. Best body text is #000000 at 9.60:1 contrast (WCAG AA passes).
Color values
| HEX | #CD9CEF |
|---|---|
| RGB | rgb(205, 156, 239) |
| HSL | hsl(275, 72%, 77%) |
| HSV | hsv(275, 35%, 94%) |
| CMYK | cmyk(14.2%, 34.7%, 0%, 6.3%) |
| CIE-LAB | lab(71.55, 33.26, -34.76) |
| CIE-LCH | lch(71.55, 48.11, 313.73°) |
| OKLab | oklab(76.8% 0.0823 -0.0957) |
| OKLCH | oklch(76.8% 0.126 310.7) |
| XYZ | xyz(52.6425, 42.9888, 87.1691) |
| Luminance | 0.4299 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lavender (survey)
#C79FEF
ΔE00 1.70
Baby Purple
#CA9BF7
ΔE00 2.01
Lilac (survey)
#CEA2FD
ΔE00 2.72
Pastel Purple
#CAA0FF
ΔE00 3.40
Pale Violet
#CEAEFA
ΔE00 4.85
Mauve
#E0B0FF
ΔE00 5.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CD9CEF #BEEF9C
analogous
#A49CEF #CD9CEF #EF9CE7
triadic
#CD9CEF #EFCD9C #9CEFCD
tetradic
#CD9CEF #EFA49C #BEEF9C #9CE7EF
square
#CD9CEF #EFA49C #BEEF9C #9CE7EF
split-complementary
#CD9CEF #E7EF9C #9CEFA4
monochromatic
#9833DE #B267E6 #CD9CEF #E8D1F8 #F2E5FB
Accessibility & contrast
On white
2.19
#CD9CEF on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.60
#CD9CEF on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CD9CEF
9.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CD9CEF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CD9CEF | 1.00 | 2.19 | 9.60 | 9.60 |
| #FFFFFF | 2.19 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.60 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.60 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8DADF2
Deuteranopia (green-blind)
#98B0ED
Tritanopia (blue-blind)
#C9A7BB
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #cd9cef; /* rgb */ color: rgb(205, 156, 239); /* oklch */ color: oklch(76.8% 0.126 310.7);
Tailwind
colors: {
custom: {
50: '#ddb9f4',
500: '#cd9cef',
950: '#000000',
},
}SCSS
$custom: #cd9cef; $custom-light: #ddb9f4; $custom-dark: #000000;
JSON
{
"hex": "#cd9cef",
"rgb": {
"r": 205,
"g": 156,
"b": 239
},
"hsl": {
"h": 275.422,
"s": 72.174,
"l": 77.451
},
"oklch": {
"l": 0.76795,
"c": 0.12622,
"h": 310.7
},
"luminance": 0.42988
}Semantic roles & 50–950 ramp
primary
#CD9CEF
secondary
#E3F2D9
accent
#D41161
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085