#CD8AF2#CD8AF2
#CD8AF2 is a light, vivid violet. Relative luminance 0.376; OKLCH L 73.9% C 0.160 H 312.7°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).
Color values
| HEX | #CD8AF2 |
|---|---|
| RGB | rgb(205, 138, 242) |
| HSL | hsl(279, 80%, 75%) |
| HSV | hsv(279, 43%, 95%) |
| CMYK | cmyk(15.3%, 43%, 0%, 5.1%) |
| CIE-LAB | lab(67.70, 43.63, -42.40) |
| CIE-LCH | lch(67.70, 60.83, 315.82°) |
| OKLab | oklab(73.93% 0.1084 -0.1176) |
| OKLCH | oklch(73.93% 0.16 312.7) |
| XYZ | xyz(50.2896, 37.5679, 88.5893) |
| Luminance | 0.3757 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.21
Baby Purple
#CA9BF7
ΔE00 4.41
Light Purple
#BF77F6
ΔE00 5.55
Pastel Purple
#CAA0FF
ΔE00 5.88
Lavender (survey)
#C79FEF
ΔE00 5.92
Lilac (survey)
#CEA2FD
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CD8AF2 #AFF28A
analogous
#998AF2 #CD8AF2 #F28AE3
triadic
#CD8AF2 #F2CD8A #8AF2CD
tetradic
#CD8AF2 #F2998A #AFF28A #8AE3F2
square
#CD8AF2 #F2998A #AFF28A #8AE3F2
split-complementary
#CD8AF2 #E3F28A #8AF299
monochromatic
#9E1CE6 #B553EC #CD8AF2 #E5C1F8 #F3E3FC
Accessibility & contrast
On white
2.47
#CD8AF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.51
#CD8AF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CD8AF2
8.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CD8AF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CD8AF2 | 1.00 | 2.47 | 8.51 | 8.51 |
| #FFFFFF | 2.47 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.51 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.51 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#75A1F6
Deuteranopia (green-blind)
#87A7EF
Tritanopia (blue-blind)
#CA99B3
Achromatopsia (no color)
#A5A5A5
Design tokens & code
CSS
--color: #cd8af2; /* rgb */ color: rgb(205, 138, 242); /* oklch */ color: oklch(73.9% 0.160 312.7);
Tailwind
colors: {
custom: {
50: '#deadf6',
500: '#cd8af2',
950: '#000000',
},
}SCSS
$custom: #cd8af2; $custom-light: #deadf6; $custom-dark: #000000;
JSON
{
"hex": "#cd8af2",
"rgb": {
"r": 205,
"g": 138,
"b": 242
},
"hsl": {
"h": 278.654,
"s": 80,
"l": 74.51
},
"oklch": {
"l": 0.73934,
"c": 0.15988,
"h": 312.7
},
"luminance": 0.37567
}Semantic roles & 50–950 ramp
primary
#CD8AF2
secondary
#E1F4D7
accent
#DC0954
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#151017
muted
#837F85