#CC8CF2#CC8CF2
#CC8CF2 is a light, vivid violet. Relative luminance 0.380; OKLCH L 74.2% C 0.156 H 311.9°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).
Color values
| HEX | #CC8CF2 |
|---|---|
| RGB | rgb(204, 140, 242) |
| HSL | hsl(278, 80%, 75%) |
| HSV | hsv(278, 42%, 95%) |
| CMYK | cmyk(15.7%, 42.1%, 0%, 5.1%) |
| CIE-LAB | lab(68.02, 42.27, -41.90) |
| CIE-LCH | lch(68.02, 59.52, 315.25°) |
| OKLab | oklab(74.15% 0.1044 -0.1161) |
| OKLCH | oklch(74.15% 0.156 311.9) |
| XYZ | xyz(50.3042, 38.0053, 88.6729) |
| Luminance | 0.3800 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 2.98
Baby Purple
#CA9BF7
ΔE00 3.89
Pastel Purple
#CAA0FF
ΔE00 5.38
Lavender (survey)
#C79FEF
ΔE00 5.40
Lilac (survey)
#CEA2FD
ΔE00 5.51
Light Purple
#BF77F6
ΔE00 5.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CC8CF2 #B2F28C
analogous
#998CF2 #CC8CF2 #F28CE5
triadic
#CC8CF2 #F2CC8C #8CF2CC
tetradic
#CC8CF2 #F2998C #B2F28C #8CE5F2
square
#CC8CF2 #F2998C #B2F28C #8CE5F2
split-complementary
#CC8CF2 #E5F28C #8CF299
monochromatic
#9B1EE6 #B455EC #CC8CF2 #E4C3F8 #F3E4FC
Accessibility & contrast
On white
2.44
#CC8CF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.60
#CC8CF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CC8CF2
8.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CC8CF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CC8CF2 | 1.00 | 2.44 | 8.60 | 8.60 |
| #FFFFFF | 2.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.60 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.60 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#77A2F6
Deuteranopia (green-blind)
#88A7EF
Tritanopia (blue-blind)
#C89BB4
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #cc8cf2; /* rgb */ color: rgb(204, 140, 242); /* oklch */ color: oklch(74.2% 0.156 311.9);
Tailwind
colors: {
custom: {
50: '#ddaff6',
500: '#cc8cf2',
950: '#000000',
},
}SCSS
$custom: #cc8cf2; $custom-light: #ddaff6; $custom-dark: #000000;
JSON
{
"hex": "#cc8cf2",
"rgb": {
"r": 204,
"g": 140,
"b": 242
},
"hsl": {
"h": 277.647,
"s": 79.687,
"l": 74.902
},
"oklch": {
"l": 0.74153,
"c": 0.15617,
"h": 311.9
},
"luminance": 0.38004
}Semantic roles & 50–950 ramp
primary
#CC8CF2
secondary
#E2F4D7
accent
#DC0A58
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#151017
muted
#837F85