#CC7AFD#CC7AFD
#CC7AFD is a light, vivid violet. Relative luminance 0.338; OKLCH L 72.0% C 0.197 H 311.3°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).
Color values
| HEX | #CC7AFD |
|---|---|
| RGB | rgb(204, 122, 253) |
| HSL | hsl(278, 97%, 74%) |
| HSV | hsv(278, 52%, 99%) |
| CMYK | cmyk(19.4%, 51.8%, 0%, 0.8%) |
| CIE-LAB | lab(64.84, 54.05, -52.95) |
| CIE-LCH | lch(64.84, 75.67, 315.59°) |
| OKLab | oklab(71.95% 0.1301 -0.1481) |
| OKLCH | oklch(71.95% 0.197 311.3) |
| XYZ | xyz(49.5878, 33.8493, 96.8308) |
| Luminance | 0.3385 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 2.39
Easter Purple
#C071FE
ΔE00 3.12
Liliac
#C48EFD
ΔE00 4.91
Light Urple
#B36FF6
ΔE00 5.22
Bright Lavender
#C760FF
ΔE00 5.47
Bright Lilac
#C95EFB
ΔE00 5.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CC7AFD #ABFD7A
analogous
#8A7AFD #CC7AFD #FD7AED
triadic
#CC7AFD #FDCC7A #7AFDCC
tetradic
#CC7AFD #FD8A7A #ABFD7A #7AEDFD
square
#CC7AFD #FD8A7A #ABFD7A #7AEDFD
split-complementary
#CC7AFD #EDFD7A #7AFD8A
monochromatic
#9D04F9 #B53EFC #CC7AFD #E3B6FE #F3E1FF
Accessibility & contrast
On white
2.70
#CC7AFD on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.77
#CC7AFD on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CC7AFD
7.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CC7AFD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CC7AFD | 1.00 | 2.70 | 7.77 | 7.77 |
| #FFFFFF | 2.70 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.77 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.77 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5799FF
Deuteranopia (green-blind)
#719FFA
Tritanopia (blue-blind)
#C690B0
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #cc7afd; /* rgb */ color: rgb(204, 122, 253); /* oklch */ color: oklch(72.0% 0.197 311.3);
Tailwind
colors: {
custom: {
50: '#dea3fe',
500: '#cc7afd',
950: '#000000',
},
}SCSS
$custom: #cc7afd; $custom-light: #dea3fe; $custom-dark: #000000;
JSON
{
"hex": "#cc7afd",
"rgb": {
"r": 204,
"g": 122,
"b": 253
},
"hsl": {
"h": 277.557,
"s": 97.037,
"l": 73.529
},
"oklch": {
"l": 0.71954,
"c": 0.19713,
"h": 311.3
},
"luminance": 0.33848
}Semantic roles & 50–950 ramp
primary
#CC7AFD
secondary
#E1F7D4
accent
#E60056
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86