#CD8EF2#CD8EF2
#CD8EF2 is a light, vivid violet. Relative luminance 0.387; OKLCH L 74.6% C 0.153 H 312.1°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).
Color values
| HEX | #CD8EF2 |
|---|---|
| RGB | rgb(205, 142, 242) |
| HSL | hsl(278, 79%, 75%) |
| HSV | hsv(278, 41%, 95%) |
| CMYK | cmyk(15.3%, 41.3%, 0%, 5.1%) |
| CIE-LAB | lab(68.56, 41.48, -41.05) |
| CIE-LCH | lch(68.56, 58.36, 315.30°) |
| OKLab | oklab(74.58% 0.1028 -0.1137) |
| OKLCH | oklch(74.58% 0.153 312.1) |
| XYZ | xyz(50.8741, 38.7369, 88.7841) |
| Luminance | 0.3874 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.15
Baby Purple
#CA9BF7
ΔE00 3.49
Lavender (survey)
#C79FEF
ΔE00 4.97
Pastel Purple
#CAA0FF
ΔE00 5.03
Lilac (survey)
#CEA2FD
ΔE00 5.08
Pale Purple
#B790D4
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CD8EF2 #B3F28E
analogous
#9B8EF2 #CD8EF2 #F28EE5
triadic
#CD8EF2 #F2CD8E #8EF2CD
tetradic
#CD8EF2 #F29B8E #B3F28E #8EE5F2
square
#CD8EF2 #F29B8E #B3F28E #8EE5F2
split-complementary
#CD8EF2 #E5F28E #8EF29B
monochromatic
#9C20E5 #B557EC #CD8EF2 #E5C5F8 #F3E4FC
Accessibility & contrast
On white
2.40
#CD8EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.75
#CD8EF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CD8EF2
8.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CD8EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CD8EF2 | 1.00 | 2.40 | 8.75 | 8.75 |
| #FFFFFF | 2.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.75 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.75 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7AA4F6
Deuteranopia (green-blind)
#8AA9EF
Tritanopia (blue-blind)
#C99DB5
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #cd8ef2; /* rgb */ color: rgb(205, 142, 242); /* oklch */ color: oklch(74.6% 0.153 312.1);
Tailwind
colors: {
custom: {
50: '#deb0f6',
500: '#cd8ef2',
950: '#000000',
},
}SCSS
$custom: #cd8ef2; $custom-light: #deb0f6; $custom-dark: #000000;
JSON
{
"hex": "#cd8ef2",
"rgb": {
"r": 205,
"g": 142,
"b": 242
},
"hsl": {
"h": 277.8,
"s": 79.365,
"l": 75.294
},
"oklch": {
"l": 0.74579,
"c": 0.15326,
"h": 312.1
},
"luminance": 0.38736
}Semantic roles & 50–950 ramp
primary
#CD8EF2
secondary
#E2F4D7
accent
#DC0A57
background
#FDFAFF
surface
#FBF5FE
border
#D4CFD6
text
#151017
muted
#837F85