#CD8CF2#CD8CF2
#CD8CF2 is a light, vivid violet. Relative luminance 0.381; OKLCH L 74.3% C 0.157 H 312.4°. Best body text is #000000 at 8.63:1 contrast (WCAG AA passes).
Color values
| HEX | #CD8CF2 |
|---|---|
| RGB | rgb(205, 140, 242) |
| HSL | hsl(278, 80%, 75%) |
| HSV | hsv(278, 42%, 95%) |
| CMYK | cmyk(15.3%, 42.1%, 0%, 5.1%) |
| CIE-LAB | lab(68.13, 42.56, -41.73) |
| CIE-LCH | lch(68.13, 59.60, 315.56°) |
| OKLab | oklab(74.26% 0.1056 -0.1156) |
| OKLCH | oklch(74.26% 0.157 312.4) |
| XYZ | xyz(50.5792, 38.1471, 88.6858) |
| Luminance | 0.3815 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.14
Baby Purple
#CA9BF7
ΔE00 3.95
Lavender (survey)
#C79FEF
ΔE00 5.45
Pastel Purple
#CAA0FF
ΔE00 5.45
Lilac (survey)
#CEA2FD
ΔE00 5.54
Light Purple
#BF77F6
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CD8CF2 #B1F28C
analogous
#9A8CF2 #CD8CF2 #F28CE4
triadic
#CD8CF2 #F2CD8C #8CF2CD
tetradic
#CD8CF2 #F29A8C #B1F28C #8CE4F2
square
#CD8CF2 #F29A8C #B1F28C #8CE4F2
split-complementary
#CD8CF2 #E4F28C #8CF29A
monochromatic
#9D1EE6 #B555EC #CD8CF2 #E5C3F8 #F3E4FC
Accessibility & contrast
On white
2.43
#CD8CF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.63
#CD8CF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CD8CF2
8.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CD8CF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CD8CF2 | 1.00 | 2.43 | 8.63 | 8.63 |
| #FFFFFF | 2.43 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.63 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.63 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#78A3F6
Deuteranopia (green-blind)
#88A8EF
Tritanopia (blue-blind)
#CA9BB4
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #cd8cf2; /* rgb */ color: rgb(205, 140, 242); /* oklch */ color: oklch(74.3% 0.157 312.4);
Tailwind
colors: {
custom: {
50: '#deaff6',
500: '#cd8cf2',
950: '#000000',
},
}SCSS
$custom: #cd8cf2; $custom-light: #deaff6; $custom-dark: #000000;
JSON
{
"hex": "#cd8cf2",
"rgb": {
"r": 205,
"g": 140,
"b": 242
},
"hsl": {
"h": 278.235,
"s": 79.687,
"l": 74.902
},
"oklch": {
"l": 0.74255,
"c": 0.15657,
"h": 312.4
},
"luminance": 0.38146
}Semantic roles & 50–950 ramp
primary
#CD8CF2
secondary
#E2F4D7
accent
#DC0A56
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#151017
muted
#837F85