#CC7AFE#CC7AFE
#CC7AFE is a light, vivid violet. Relative luminance 0.339; OKLCH L 72.0% C 0.198 H 311.1°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).
Color values
| HEX | #CC7AFE |
|---|---|
| RGB | rgb(204, 122, 254) |
| HSL | hsl(277, 99%, 74%) |
| HSV | hsv(277, 52%, 100%) |
| CMYK | cmyk(19.7%, 52%, 0%, 0.4%) |
| CIE-LAB | lab(64.89, 54.27, -53.41) |
| CIE-LCH | lch(64.89, 76.14, 315.45°) |
| OKLab | oklab(72.01% 0.1302 -0.1495) |
| OKLCH | oklch(72.01% 0.198 311.1) |
| XYZ | xyz(49.7475, 33.9132, 97.6720) |
| Luminance | 0.3391 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 2.41
Easter Purple
#C071FE
ΔE00 3.08
Liliac
#C48EFD
ΔE00 4.90
Light Urple
#B36FF6
ΔE00 5.20
Bright Lavender
#C760FF
ΔE00 5.45
Bright Lilac
#C95EFB
ΔE00 5.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CC7AFE #ACFE7A
analogous
#8A7AFE #CC7AFE #FE7AEE
triadic
#CC7AFE #FECC7A #7AFECC
tetradic
#CC7AFE #FE8A7A #ACFE7A #7AEEFE
square
#CC7AFE #FE8A7A #ACFE7A #7AEEFE
split-complementary
#CC7AFE #EEFE7A #7AFE8A
monochromatic
#9D02FC #B53DFE #CC7AFE #E3B7FE #F3E1FF
Accessibility & contrast
On white
2.70
#CC7AFE on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.78
#CC7AFE on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CC7AFE
7.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CC7AFE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CC7AFE | 1.00 | 2.70 | 7.78 | 7.78 |
| #FFFFFF | 2.70 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.78 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.78 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5699FF
Deuteranopia (green-blind)
#709FFB
Tritanopia (blue-blind)
#C690B1
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #cc7afe; /* rgb */ color: rgb(204, 122, 254); /* oklch */ color: oklch(72.0% 0.198 311.1);
Tailwind
colors: {
custom: {
50: '#dea3ff',
500: '#cc7afe',
950: '#000000',
},
}SCSS
$custom: #cc7afe; $custom-light: #dea3ff; $custom-dark: #000000;
JSON
{
"hex": "#cc7afe",
"rgb": {
"r": 204,
"g": 122,
"b": 254
},
"hsl": {
"h": 277.273,
"s": 98.507,
"l": 73.725
},
"oklch": {
"l": 0.72008,
"c": 0.19822,
"h": 311.1
},
"luminance": 0.33912
}Semantic roles & 50–950 ramp
primary
#CC7AFE
secondary
#E1F7D4
accent
#E60057
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86