#CC40A2#CC40A2
#CC40A2 is a mid, highly saturated pink. Relative luminance 0.191; OKLCH L 60.3% C 0.202 H 342.1°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).
Color values
| HEX | #CC40A2 |
|---|---|
| RGB | rgb(204, 64, 162) |
| HSL | hsl(318, 58%, 53%) |
| HSV | hsv(318, 69%, 80%) |
| CMYK | cmyk(0%, 68.6%, 20.6%, 20%) |
| CIE-LAB | lab(50.82, 64.31, -23.23) |
| CIE-LCH | lch(50.82, 68.37, 340.14°) |
| OKLab | oklab(60.28% 0.1927 -0.0623) |
| OKLCH | oklch(60.28% 0.202 342.1) |
| XYZ | xyz(33.2578, 19.1160, 36.1137) |
| Luminance | 0.1911 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 4.87
Pinky Purple
#C94CBE
ΔE00 5.55
Purplish Pink
#CE5DAE
ΔE00 5.80
Mediumvioletred
#C71585
ΔE00 7.14
Purpleish Pink
#DF4EC8
ΔE00 7.50
Bright Pink
#FE01B1
ΔE00 7.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CC40A2 #40CC6A
analogous
#B040CC #CC40A2 #CC405C
triadic
#CC40A2 #A2CC40 #40A2CC
tetradic
#CC40A2 #CCB040 #40CC6A #405CCC
square
#CC40A2 #CCB040 #40CC6A #405CCC
split-complementary
#CC40A2 #5CCC40 #40CCB0
monochromatic
#731F5A #A32C7F #CC40A2 #D970BA #E6A1D1
Accessibility & contrast
On white
4.35
#CC40A2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.82
#CC40A2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #CC40A2
4.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CC40A2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CC40A2 | 1.00 | 4.35 | 4.82 | 4.82 |
| #FFFFFF | 4.35 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.82 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.82 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4C6AA5
Deuteranopia (green-blind)
#77819F
Tritanopia (blue-blind)
#D8426B
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #cc40a2; /* rgb */ color: rgb(204, 64, 162); /* oklch */ color: oklch(60.3% 0.202 342.1);
Tailwind
colors: {
custom: {
50: '#df80bd',
500: '#cc40a2',
950: '#000000',
},
}SCSS
$custom: #cc40a2; $custom-light: #df80bd; $custom-dark: #000000;
JSON
{
"hex": "#cc40a2",
"rgb": {
"r": 204,
"g": 64,
"b": 162
},
"hsl": {
"h": 318,
"s": 57.851,
"l": 52.549
},
"oklch": {
"l": 0.60277,
"c": 0.20248,
"h": 342.1
},
"luminance": 0.19113
}Semantic roles & 50–950 ramp
primary
#CC40A2
secondary
#95D2A8
accent
#E17547
background
#FEF8FB
surface
#FCEFF6
border
#D5CAD0
text
#160B12
muted
#847C81