#CD9FE9#CD9FE9
#CD9FE9 is a light, moderate violet. Relative luminance 0.437; OKLCH L 77.1% C 0.114 H 312.2°. Best body text is #000000 at 9.73:1 contrast (WCAG AA passes).
Color values
| HEX | #CD9FE9 |
|---|---|
| RGB | rgb(205, 159, 233) |
| HSL | hsl(277, 63%, 77%) |
| HSV | hsv(277, 32%, 91%) |
| CMYK | cmyk(12%, 31.8%, 0%, 8.6%) |
| CIE-LAB | lab(72.00, 30.36, -30.79) |
| CIE-LCH | lch(72.00, 43.24, 314.60°) |
| OKLab | oklab(77.06% 0.0765 -0.0844) |
| OKLCH | oklch(77.06% 0.114 312.2) |
| XYZ | xyz(52.2805, 43.6594, 82.7480) |
| Luminance | 0.4366 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lavender (survey)
#C79FEF
ΔE00 2.23
Baby Purple
#CA9BF7
ΔE00 3.60
Lilac (survey)
#CEA2FD
ΔE00 3.83
Pale Violet
#CEAEFA
ΔE00 4.59
Pastel Purple
#CAA0FF
ΔE00 4.68
Mauve
#E0B0FF
ΔE00 4.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CD9FE9 #BBE99F
analogous
#A89FE9 #CD9FE9 #E99FE0
triadic
#CD9FE9 #E9CD9F #9FE9CD
tetradic
#CD9FE9 #E9A89F #BBE99F #9FE0E9
square
#CD9FE9 #E9A89F #BBE99F #9FE0E9
split-complementary
#CD9FE9 #E0E99F #9FE9A8
monochromatic
#993BD2 #B36DDE #CD9FE9 #E7D1F4 #F2E6F9
Accessibility & contrast
On white
2.16
#CD9FE9 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.73
#CD9FE9 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CD9FE9
9.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CD9FE9 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CD9FE9 | 1.00 | 2.16 | 9.73 | 9.73 |
| #FFFFFF | 2.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.73 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.73 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#93AEEC
Deuteranopia (green-blind)
#9DB2E7
Tritanopia (blue-blind)
#CBA9BA
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #cd9fe9; /* rgb */ color: rgb(205, 159, 233); /* oklch */ color: oklch(77.1% 0.114 312.2);
Tailwind
colors: {
custom: {
50: '#ddbcf0',
500: '#cd9fe9',
950: '#000000',
},
}SCSS
$custom: #cd9fe9; $custom-light: #ddbcf0; $custom-dark: #000000;
JSON
{
"hex": "#cd9fe9",
"rgb": {
"r": 205,
"g": 159,
"b": 233
},
"hsl": {
"h": 277.297,
"s": 62.712,
"l": 76.863
},
"oklch": {
"l": 0.77062,
"c": 0.11392,
"h": 312.2
},
"luminance": 0.43659
}Semantic roles & 50–950 ramp
primary
#CD9FE9
secondary
#E3F1DA
accent
#CA1B5D
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151216
muted
#838184