#CC7AFB#CC7AFB
#CC7AFB is a light, vivid violet. Relative luminance 0.337; OKLCH L 71.8% C 0.195 H 311.8°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).
Color values
| HEX | #CC7AFB |
|---|---|
| RGB | rgb(204, 122, 251) |
| HSL | hsl(278, 94%, 73%) |
| HSV | hsv(278, 51%, 98%) |
| CMYK | cmyk(18.7%, 51.4%, 0%, 1.6%) |
| CIE-LAB | lab(64.74, 53.63, -52.01) |
| CIE-LCH | lch(64.74, 74.71, 315.88°) |
| OKLab | oklab(71.85% 0.13 -0.1454) |
| OKLCH | oklch(71.85% 0.195 311.8) |
| XYZ | xyz(49.2709, 33.7225, 95.1617) |
| Luminance | 0.3372 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 2.39
Easter Purple
#C071FE
ΔE00 3.24
Liliac
#C48EFD
ΔE00 4.94
Light Urple
#B36FF6
ΔE00 5.27
Bright Lavender
#C760FF
ΔE00 5.52
Bright Lilac
#C95EFB
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CC7AFB #A9FB7A
analogous
#8B7AFB #CC7AFB #FB7AE9
triadic
#CC7AFB #FBCC7A #7AFBCC
tetradic
#CC7AFB #FB8B7A #A9FB7A #7AE9FB
square
#CC7AFB #FB8B7A #A9FB7A #7AE9FB
split-complementary
#CC7AFB #E9FB7A #7AFB8B
monochromatic
#9D07F3 #B53FF9 #CC7AFB #E3B5FD #F4E1FE
Accessibility & contrast
On white
2.71
#CC7AFB on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.74
#CC7AFB on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CC7AFB
7.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CC7AFB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CC7AFB | 1.00 | 2.71 | 7.74 | 7.74 |
| #FFFFFF | 2.71 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5999FF
Deuteranopia (green-blind)
#729FF8
Tritanopia (blue-blind)
#C78FAF
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #cc7afb; /* rgb */ color: rgb(204, 122, 251); /* oklch */ color: oklch(71.8% 0.195 311.8);
Tailwind
colors: {
custom: {
50: '#dea3fd',
500: '#cc7afb',
950: '#000000',
},
}SCSS
$custom: #cc7afb; $custom-light: #dea3fd; $custom-dark: #000000;
JSON
{
"hex": "#cc7afb",
"rgb": {
"r": 204,
"g": 122,
"b": 251
},
"hsl": {
"h": 278.14,
"s": 94.161,
"l": 73.137
},
"oklch": {
"l": 0.71846,
"c": 0.19498,
"h": 311.8
},
"luminance": 0.33721
}Semantic roles & 50–950 ramp
primary
#CC7AFB
secondary
#E1F6D5
accent
#E60054
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86