#CD9FEF#CD9FEF
#CD9FEF is a light, vivid violet. Relative luminance 0.440; OKLCH L 77.3% C 0.121 H 310.1°. Best body text is #000000 at 9.80:1 contrast (WCAG AA passes).
Color values
| HEX | #CD9FEF |
|---|---|
| RGB | rgb(205, 159, 239) |
| HSL | hsl(275, 71%, 78%) |
| HSV | hsv(275, 33%, 94%) |
| CMYK | cmyk(14.2%, 33.5%, 0%, 6.3%) |
| CIE-LAB | lab(72.23, 31.62, -33.70) |
| CIE-LCH | lch(72.23, 46.21, 313.17°) |
| OKLab | oklab(77.32% 0.078 -0.0927) |
| OKLCH | oklch(77.32% 0.121 310.1) |
| XYZ | xyz(53.1522, 44.0080, 87.3389) |
| Luminance | 0.4401 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lavender (survey)
#C79FEF
ΔE00 1.35
Baby Purple
#CA9BF7
ΔE00 2.40
Lilac (survey)
#CEA2FD
ΔE00 2.59
Pastel Purple
#CAA0FF
ΔE00 3.43
Pale Violet
#CEAEFA
ΔE00 4.12
Mauve
#E0B0FF
ΔE00 4.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CD9FEF #C1EF9F
analogous
#A59FEF #CD9FEF #EF9FE9
triadic
#CD9FEF #EFCD9F #9FEFCD
tetradic
#CD9FEF #EFA59F #C1EF9F #9FE9EF
square
#CD9FEF #EFA59F #C1EF9F #9FE9EF
split-complementary
#CD9FEF #E9EF9F #9FEFA5
monochromatic
#9636DE #B26BE6 #CD9FEF #E8D3F8 #F1E5FB
Accessibility & contrast
On white
2.14
#CD9FEF on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.80
#CD9FEF on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CD9FEF
9.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CD9FEF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CD9FEF | 1.00 | 2.14 | 9.80 | 9.80 |
| #FFFFFF | 2.14 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.80 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.80 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#91AFF2
Deuteranopia (green-blind)
#9BB2ED
Tritanopia (blue-blind)
#C9AABC
Achromatopsia (no color)
#B1B1B1
Design tokens & code
CSS
--color: #cd9fef; /* rgb */ color: rgb(205, 159, 239); /* oklch */ color: oklch(77.3% 0.121 310.1);
Tailwind
colors: {
custom: {
50: '#ddbcf4',
500: '#cd9fef',
950: '#000000',
},
}SCSS
$custom: #cd9fef; $custom-light: #ddbcf4; $custom-dark: #000000;
JSON
{
"hex": "#cd9fef",
"rgb": {
"r": 205,
"g": 159,
"b": 239
},
"hsl": {
"h": 274.5,
"s": 71.429,
"l": 78.039
},
"oklch": {
"l": 0.77317,
"c": 0.12114,
"h": 310.1
},
"luminance": 0.44007
}Semantic roles & 50–950 ramp
primary
#CD9FEF
secondary
#E4F2D9
accent
#D31264
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151217
muted
#838185