#CC7EFE#CC7EFE
#CC7EFE is a light, vivid violet. Relative luminance 0.349; OKLCH L 72.6% C 0.192 H 310.6°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).
Color values
| HEX | #CC7EFE |
|---|---|
| RGB | rgb(204, 126, 254) |
| HSL | hsl(277, 98%, 75%) |
| HSV | hsv(277, 50%, 100%) |
| CMYK | cmyk(19.7%, 50.4%, 0%, 0.4%) |
| CIE-LAB | lab(65.68, 52.21, -52.16) |
| CIE-LCH | lch(65.68, 73.81, 315.03°) |
| OKLab | oklab(72.59% 0.125 -0.1458) |
| OKLCH | oklch(72.59% 0.192 310.6) |
| XYZ | xyz(50.2488, 34.9158, 97.8391) |
| Luminance | 0.3492 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 2.83
Easter Purple
#C071FE
ΔE00 3.75
Liliac
#C48EFD
ΔE00 4.09
Light Urple
#B36FF6
ΔE00 5.73
Bright Lavender
#C760FF
ΔE00 6.31
Bright Lilac
#C95EFB
ΔE00 6.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CC7EFE #B0FE7E
analogous
#8C7EFE #CC7EFE #FE7EF0
triadic
#CC7EFE #FECC7E #7EFECC
tetradic
#CC7EFE #FE8C7E #B0FE7E #7EF0FE
square
#CC7EFE #FE8C7E #B0FE7E #7EF0FE
split-complementary
#CC7EFE #F0FE7E #7EFE8C
monochromatic
#9C05FD #B441FE #CC7EFE #E4BBFE #F3E1FF
Accessibility & contrast
On white
2.63
#CC7EFE on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.98
#CC7EFE on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CC7EFE
7.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CC7EFE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CC7EFE | 1.00 | 2.63 | 7.98 | 7.98 |
| #FFFFFF | 2.63 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.98 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.98 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5D9CFF
Deuteranopia (green-blind)
#74A1FB
Tritanopia (blue-blind)
#C693B3
Achromatopsia (no color)
#A0A0A0
Design tokens & code
CSS
--color: #cc7efe; /* rgb */ color: rgb(204, 126, 254); /* oklch */ color: oklch(72.6% 0.192 310.6);
Tailwind
colors: {
custom: {
50: '#dea6ff',
500: '#cc7efe',
950: '#000000',
},
}SCSS
$custom: #cc7efe; $custom-light: #dea6ff; $custom-dark: #000000;
JSON
{
"hex": "#cc7efe",
"rgb": {
"r": 204,
"g": 126,
"b": 254
},
"hsl": {
"h": 276.563,
"s": 98.462,
"l": 74.51
},
"oklch": {
"l": 0.72591,
"c": 0.19206,
"h": 310.6
},
"luminance": 0.34915
}Semantic roles & 50–950 ramp
primary
#CC7EFE
secondary
#E2F7D4
accent
#E6005A
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86