#CC7FE2#CC7FE2
#CC7FE2 is a light, vivid purple. Relative luminance 0.335; OKLCH L 71.3% C 0.160 H 318.5°. Best body text is #000000 at 7.70:1 contrast (WCAG AA passes).
Color values
| HEX | #CC7FE2 |
|---|---|
| RGB | rgb(204, 127, 226) |
| HSL | hsl(287, 63%, 69%) |
| HSV | hsv(287, 44%, 89%) |
| CMYK | cmyk(9.7%, 43.8%, 0%, 11.4%) |
| CIE-LAB | lab(64.57, 45.89, -38.47) |
| CIE-LCH | lch(64.57, 59.89, 320.03°) |
| OKLab | oklab(71.33% 0.1199 -0.1062) |
| OKLCH | oklch(71.33% 0.16 318.5) |
| XYZ | xyz(46.2168, 33.5086, 75.9700) |
| Luminance | 0.3351 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Orchid
#DA70D6
ΔE00 4.72
Lavender Pink
#DD85D7
ΔE00 5.20
Light Purple
#BF77F6
ΔE00 5.54
Orchid (survey)
#C875C4
ΔE00 5.65
Violet (CSS)
#EE82EE
ΔE00 5.81
Purply Pink
#F075E6
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CC7FE2 #95E27F
analogous
#9B7FE2 #CC7FE2 #E27FC6
triadic
#CC7FE2 #E2CC7F #7FE2CC
tetradic
#CC7FE2 #E29B7F #95E27F #7FC6E2
square
#CC7FE2 #E29B7F #95E27F #7FC6E2
split-complementary
#CC7FE2 #C6E27F #7FE29B
monochromatic
#9C2BBC #B84DD7 #CC7FE2 #E0B1ED #F4E3F9
Accessibility & contrast
On white
2.73
#CC7FE2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.70
#CC7FE2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CC7FE2
7.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CC7FE2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CC7FE2 | 1.00 | 2.73 | 7.70 | 7.70 |
| #FFFFFF | 2.73 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.70 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.70 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6F97E6
Deuteranopia (green-blind)
#849FDF
Tritanopia (blue-blind)
#CC8CA6
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #cc7fe2; /* rgb */ color: rgb(204, 127, 226); /* oklch */ color: oklch(71.3% 0.160 318.5);
Tailwind
colors: {
custom: {
50: '#dda6eb',
500: '#cc7fe2',
950: '#000000',
},
}SCSS
$custom: #cc7fe2; $custom-light: #dda6eb; $custom-dark: #000000;
JSON
{
"hex": "#cc7fe2",
"rgb": {
"r": 204,
"g": 127,
"b": 226
},
"hsl": {
"h": 286.667,
"s": 63.057,
"l": 69.216
},
"oklch": {
"l": 0.71334,
"c": 0.16017,
"h": 318.5
},
"luminance": 0.33507
}Semantic roles & 50–950 ramp
primary
#CC7FE2
secondary
#D6EDD0
accent
#CB1B42
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F16
muted
#837F84