#CD9AF2#CD9AF2
#CD9AF2 is a light, vivid violet. Relative luminance 0.425; OKLCH L 76.6% C 0.133 H 310.1°. Best body text is #000000 at 9.50:1 contrast (WCAG AA passes).
Color values
| HEX | #CD9AF2 |
|---|---|
| RGB | rgb(205, 154, 242) |
| HSL | hsl(275, 77%, 78%) |
| HSV | hsv(275, 36%, 95%) |
| CMYK | cmyk(15.3%, 36.4%, 0%, 5.1%) |
| CIE-LAB | lab(71.22, 34.98, -36.92) |
| CIE-LCH | lch(71.22, 50.86, 313.46°) |
| OKLab | oklab(76.58% 0.0858 -0.1019) |
| OKLCH | oklch(76.58% 0.133 310.1) |
| XYZ | xyz(52.7566, 42.5018, 89.4116) |
| Luminance | 0.4250 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Baby Purple
#CA9BF7
ΔE00 1.38
Lavender (survey)
#C79FEF
ΔE00 2.11
Lilac (survey)
#CEA2FD
ΔE00 2.53
Pastel Purple
#CAA0FF
ΔE00 3.00
Liliac
#C48EFD
ΔE00 4.61
Pale Violet
#CEAEFA
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CD9AF2 #BFF29A
analogous
#A19AF2 #CD9AF2 #F29AEB
triadic
#CD9AF2 #F2CD9A #9AF2CD
tetradic
#CD9AF2 #F2A19A #BFF29A #9AEBF2
square
#CD9AF2 #F2A19A #BFF29A #9AEBF2
split-complementary
#CD9AF2 #EBF29A #9AF2A1
monochromatic
#972EE4 #B264EB #CD9AF2 #E8D0F9 #F2E4FC
Accessibility & contrast
On white
2.21
#CD9AF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.50
#CD9AF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CD9AF2
9.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CD9AF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CD9AF2 | 1.00 | 2.21 | 9.50 | 9.50 |
| #FFFFFF | 2.21 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.50 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.50 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#89ACF5
Deuteranopia (green-blind)
#95AFEF
Tritanopia (blue-blind)
#C9A7BB
Achromatopsia (no color)
#AEAEAE
Design tokens & code
CSS
--color: #cd9af2; /* rgb */ color: rgb(205, 154, 242); /* oklch */ color: oklch(76.6% 0.133 310.1);
Tailwind
colors: {
custom: {
50: '#ddb8f6',
500: '#cd9af2',
950: '#000000',
},
}SCSS
$custom: #cd9af2; $custom-light: #ddb8f6; $custom-dark: #000000;
JSON
{
"hex": "#cd9af2",
"rgb": {
"r": 205,
"g": 154,
"b": 242
},
"hsl": {
"h": 274.773,
"s": 77.193,
"l": 77.647
},
"oklch": {
"l": 0.76584,
"c": 0.13319,
"h": 310.1
},
"luminance": 0.42501
}Semantic roles & 50–950 ramp
primary
#CD9AF2
secondary
#E3F3D8
accent
#D90C62
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151117
muted
#838085