#CC51B2#CC51B2
#CC51B2 is a light, vivid pink. Relative luminance 0.219; OKLCH L 62.8% C 0.190 H 336.8°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).
Color values
| HEX | #CC51B2 |
|---|---|
| RGB | rgb(204, 81, 178) |
| HSL | hsl(313, 55%, 56%) |
| HSV | hsv(313, 60%, 80%) |
| CMYK | cmyk(0%, 60.3%, 12.7%, 20%) |
| CIE-LAB | lab(53.96, 59.80, -27.75) |
| CIE-LCH | lch(53.96, 65.92, 335.11°) |
| OKLab | oklab(62.79% 0.175 -0.0752) |
| OKLCH | oklch(62.79% 0.19 336.8) |
| XYZ | xyz(35.8806, 21.9395, 44.4558) |
| Luminance | 0.2194 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Pinky Purple
#C94CBE
ΔE00 2.95
Purplish Pink
#CE5DAE
ΔE00 3.07
Purpleish Pink
#DF4EC8
ΔE00 4.33
Purpley Pink
#C83CB9
ΔE00 4.60
Pinkish Purple
#D648D7
ΔE00 6.26
Pale Magenta
#D767AD
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CC51B2 #51CC6B
analogous
#A851CC #CC51B2 #CC5174
triadic
#CC51B2 #B2CC51 #51B2CC
tetradic
#CC51B2 #CCA851 #51CC6B #5174CC
square
#CC51B2 #CCA851 #51CC6B #5174CC
split-complementary
#CC51B2 #74CC51 #51CCA8
monochromatic
#7E256B #AD3393 #CC51B2 #DA80C7 #E8B0DC
Accessibility & contrast
On white
3.90
#CC51B2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.39
#CC51B2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #CC51B2
5.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CC51B2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CC51B2 | 1.00 | 3.90 | 5.39 | 5.39 |
| #FFFFFF | 3.90 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.39 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.39 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5375B5
Deuteranopia (green-blind)
#7988AF
Tritanopia (blue-blind)
#D6577A
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #cc51b2; /* rgb */ color: rgb(204, 81, 178); /* oklch */ color: oklch(62.8% 0.190 336.8);
Tailwind
colors: {
custom: {
50: '#df89c9',
500: '#cc51b2',
950: '#000000',
},
}SCSS
$custom: #cc51b2; $custom-light: #df89c9; $custom-dark: #000000;
JSON
{
"hex": "#cc51b2",
"rgb": {
"r": 204,
"g": 81,
"b": 178
},
"hsl": {
"h": 312.683,
"s": 54.667,
"l": 55.882
},
"oklch": {
"l": 0.62794,
"c": 0.19049,
"h": 336.8
},
"luminance": 0.21937
}Semantic roles & 50–950 ramp
primary
#CC51B2
secondary
#A3D6AE
accent
#DE694A
background
#FEF8FC
surface
#FCF0F8
border
#D5CBD1
text
#160C13
muted
#847D82