#CC51A2#CC51A2
#CC51A2 is a light, vivid pink. Relative luminance 0.213; OKLCH L 62.1% C 0.179 H 343.2°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).
Color values
| HEX | #CC51A2 |
|---|---|
| RGB | rgb(204, 81, 162) |
| HSL | hsl(320, 55%, 56%) |
| HSV | hsv(320, 60%, 80%) |
| CMYK | cmyk(0%, 60.3%, 20.6%, 20%) |
| CIE-LAB | lab(53.31, 57.44, -19.41) |
| CIE-LCH | lch(53.31, 60.63, 341.33°) |
| OKLab | oklab(62.1% 0.1718 -0.0517) |
| OKLCH | oklch(62.1% 0.179 343.2) |
| XYZ | xyz(34.3668, 21.3340, 36.4833) |
| Luminance | 0.2133 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purplish Pink
#CE5DAE
ΔE00 3.14
Pale Magenta
#D767AD
ΔE00 5.66
Pinky Purple
#C94CBE
ΔE00 6.10
Purpley Pink
#C83CB9
ΔE00 6.84
Purpleish Pink
#DF4EC8
ΔE00 6.87
Bright Pink
#FE01B1
ΔE00 7.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CC51A2 #51CC7B
analogous
#B951CC #CC51A2 #CC5164
triadic
#CC51A2 #A2CC51 #51A2CC
tetradic
#CC51A2 #CCB951 #51CC7B #5164CC
square
#CC51A2 #CCB951 #51CC7B #5164CC
split-complementary
#CC51A2 #64CC51 #51CCB9
monochromatic
#7E255F #AD3383 #CC51A2 #DA80BB #E8B0D5
Accessibility & contrast
On white
3.99
#CC51A2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.27
#CC51A2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #CC51A2
5.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CC51A2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CC51A2 | 1.00 | 3.99 | 5.27 | 5.27 |
| #FFFFFF | 3.99 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.27 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.27 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5B72A5
Deuteranopia (green-blind)
#7E879F
Tritanopia (blue-blind)
#D85172
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #cc51a2; /* rgb */ color: rgb(204, 81, 162); /* oklch */ color: oklch(62.1% 0.179 343.2);
Tailwind
colors: {
custom: {
50: '#df88bd',
500: '#cc51a2',
950: '#000000',
},
}SCSS
$custom: #cc51a2; $custom-light: #df88bd; $custom-dark: #000000;
JSON
{
"hex": "#cc51a2",
"rgb": {
"r": 204,
"g": 81,
"b": 162
},
"hsl": {
"h": 320.488,
"s": 54.667,
"l": 55.882
},
"oklch": {
"l": 0.62104,
"c": 0.17945,
"h": 343.2
},
"luminance": 0.21331
}Semantic roles & 50–950 ramp
primary
#CC51A2
secondary
#A3D6B4
accent
#DE7C4A
background
#FEF8FB
surface
#FCF0F6
border
#D5CBD0
text
#160C12
muted
#847D81