#CC7FEB#CC7FEB
#CC7FEB is a light, vivid purple. Relative luminance 0.340; OKLCH L 71.8% C 0.170 H 315.6°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).
Color values
| HEX | #CC7FEB |
|---|---|
| RGB | rgb(204, 127, 235) |
| HSL | hsl(283, 73%, 71%) |
| HSV | hsv(283, 46%, 92%) |
| CMYK | cmyk(13.2%, 46%, 0%, 7.8%) |
| CIE-LAB | lab(64.97, 47.71, -42.83) |
| CIE-LCH | lch(64.97, 64.11, 318.09°) |
| OKLab | oklab(71.77% 0.1214 -0.1187) |
| OKLCH | oklch(71.77% 0.17 315.6) |
| XYZ | xyz(47.4843, 34.0156, 82.6455) |
| Luminance | 0.3401 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Light Purple
#BF77F6
ΔE00 4.23
Liliac
#C48EFD
ΔE00 5.13
Easter Purple
#C071FE
ΔE00 5.66
Orchid
#DA70D6
ΔE00 5.77
Violet (CSS)
#EE82EE
ΔE00 6.20
Lavender Pink
#DD85D7
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CC7FEB #9EEB7F
analogous
#967FEB #CC7FEB #EB7FD4
triadic
#CC7FEB #EBCC7F #7FEBCC
tetradic
#CC7FEB #EB967F #9EEB7F #7FD4EB
square
#CC7FEB #EB967F #9EEB7F #7FD4EB
split-complementary
#CC7FEB #D4EB7F #7FEB96
monochromatic
#9D20CF #B74AE3 #CC7FEB #E1B4F3 #F4E5FB
Accessibility & contrast
On white
2.69
#CC7FEB on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.80
#CC7FEB on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CC7FEB
7.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CC7FEB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CC7FEB | 1.00 | 2.69 | 7.80 | 7.80 |
| #FFFFFF | 2.69 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.80 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.80 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6A99EF
Deuteranopia (green-blind)
#80A0E8
Tritanopia (blue-blind)
#CA8FAA
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #cc7feb; /* rgb */ color: rgb(204, 127, 235); /* oklch */ color: oklch(71.8% 0.170 315.6);
Tailwind
colors: {
custom: {
50: '#dda6f2',
500: '#cc7feb',
950: '#000000',
},
}SCSS
$custom: #cc7feb; $custom-light: #dda6f2; $custom-dark: #000000;
JSON
{
"hex": "#cc7feb",
"rgb": {
"r": 204,
"g": 127,
"b": 235
},
"hsl": {
"h": 282.778,
"s": 72.973,
"l": 70.98
},
"oklch": {
"l": 0.71768,
"c": 0.16979,
"h": 315.6
},
"luminance": 0.34014
}Semantic roles & 50–950 ramp
primary
#CC7FEB
secondary
#DDF1D5
accent
#D51049
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85