#CD8EF6#CD8EF6
#CD8EF6 is a light, vivid violet. Relative luminance 0.390; OKLCH L 74.8% C 0.158 H 311.0°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).
Color values
| HEX | #CD8EF6 |
|---|---|
| RGB | rgb(205, 142, 246) |
| HSL | hsl(276, 85%, 76%) |
| HSV | hsv(276, 42%, 96%) |
| CMYK | cmyk(16.7%, 42.3%, 0%, 3.5%) |
| CIE-LAB | lab(68.74, 42.33, -42.97) |
| CIE-LCH | lch(68.74, 60.32, 314.57°) |
| OKLab | oklab(74.77% 0.1035 -0.1192) |
| OKLCH | oklch(74.77% 0.158 311) |
| XYZ | xyz(51.4814, 38.9798, 91.9827) |
| Luminance | 0.3898 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 2.55
Baby Purple
#CA9BF7
ΔE00 3.45
Pastel Purple
#CAA0FF
ΔE00 4.81
Lilac (survey)
#CEA2FD
ΔE00 4.99
Lavender (survey)
#C79FEF
ΔE00 5.15
Light Purple
#BF77F6
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CD8EF6 #B7F68E
analogous
#998EF6 #CD8EF6 #F68EEB
triadic
#CD8EF6 #F6CD8E #8EF6CD
tetradic
#CD8EF6 #F6998E #B7F68E #8EEBF6
square
#CD8EF6 #F6998E #B7F68E #8EEBF6
split-complementary
#CD8EF6 #EBF68E #8EF699
monochromatic
#9B1DED #B455F1 #CD8EF6 #E6C7FB #F2E3FD
Accessibility & contrast
On white
2.39
#CD8EF6 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.80
#CD8EF6 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CD8EF6
8.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CD8EF6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CD8EF6 | 1.00 | 2.39 | 8.80 | 8.80 |
| #FFFFFF | 2.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.80 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.80 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#78A5FA
Deuteranopia (green-blind)
#88A9F3
Tritanopia (blue-blind)
#C99EB6
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #cd8ef6; /* rgb */ color: rgb(205, 142, 246); /* oklch */ color: oklch(74.8% 0.158 311.0);
Tailwind
colors: {
custom: {
50: '#deb0f9',
500: '#cd8ef6',
950: '#000000',
},
}SCSS
$custom: #cd8ef6; $custom-light: #deb0f9; $custom-dark: #000000;
JSON
{
"hex": "#cd8ef6",
"rgb": {
"r": 205,
"g": 142,
"b": 246
},
"hsl": {
"h": 276.346,
"s": 85.246,
"l": 76.078
},
"oklch": {
"l": 0.74769,
"c": 0.15785,
"h": 311
},
"luminance": 0.38979
}Semantic roles & 50–950 ramp
primary
#CD8EF6
secondary
#E2F5D6
accent
#E2045B
background
#FDFAFF
surface
#FBF5FF
border
#D4CFD7
text
#151017
muted
#837F85