#CC8FF2#CC8FF2
#CC8FF2 is a light, vivid violet. Relative luminance 0.389; OKLCH L 74.6% C 0.151 H 311.5°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).
Color values
| HEX | #CC8FF2 |
|---|---|
| RGB | rgb(204, 143, 242) |
| HSL | hsl(277, 79%, 75%) |
| HSV | hsv(277, 41%, 95%) |
| CMYK | cmyk(15.7%, 40.9%, 0%, 5.1%) |
| CIE-LAB | lab(68.67, 40.66, -40.88) |
| CIE-LCH | lch(68.67, 57.66, 314.84°) |
| OKLab | oklab(74.64% 0.1002 -0.1132) |
| OKLCH | oklch(74.64% 0.151 311.5) |
| XYZ | xyz(50.7485, 38.8940, 88.8211) |
| Luminance | 0.3889 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.02
Baby Purple
#CA9BF7
ΔE00 3.19
Lavender (survey)
#C79FEF
ΔE00 4.68
Pastel Purple
#CAA0FF
ΔE00 4.74
Lilac (survey)
#CEA2FD
ΔE00 4.81
Pale Purple
#B790D4
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CC8FF2 #B5F28F
analogous
#9A8FF2 #CC8FF2 #F28FE6
triadic
#CC8FF2 #F2CC8F #8FF2CC
tetradic
#CC8FF2 #F29A8F #B5F28F #8FE6F2
square
#CC8FF2 #F29A8F #B5F28F #8FE6F2
split-complementary
#CC8FF2 #E6F28F #8FF29A
monochromatic
#9A21E5 #B358EC #CC8FF2 #E5C6F8 #F3E4FC
Accessibility & contrast
On white
2.39
#CC8FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.78
#CC8FF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CC8FF2
8.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CC8FF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CC8FF2 | 1.00 | 2.39 | 8.78 | 8.78 |
| #FFFFFF | 2.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.78 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.78 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7BA4F6
Deuteranopia (green-blind)
#8AA9EF
Tritanopia (blue-blind)
#C89DB5
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #cc8ff2; /* rgb */ color: rgb(204, 143, 242); /* oklch */ color: oklch(74.6% 0.151 311.5);
Tailwind
colors: {
custom: {
50: '#ddb1f6',
500: '#cc8ff2',
950: '#000000',
},
}SCSS
$custom: #cc8ff2; $custom-light: #ddb1f6; $custom-dark: #000000;
JSON
{
"hex": "#cc8ff2",
"rgb": {
"r": 204,
"g": 143,
"b": 242
},
"hsl": {
"h": 276.97,
"s": 79.2,
"l": 75.49
},
"oklch": {
"l": 0.74641,
"c": 0.15119,
"h": 311.5
},
"luminance": 0.38893
}Semantic roles & 50–950 ramp
primary
#CC8FF2
secondary
#E2F4D7
accent
#DB0A5A
background
#FDFAFF
surface
#FBF5FE
border
#D4CFD6
text
#151117
muted
#838085