#CC42A2#CC42A2
#CC42A2 is a mid, vivid pink. Relative luminance 0.193; OKLCH L 60.5% C 0.200 H 342.2°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #CC42A2 |
|---|---|
| RGB | rgb(204, 66, 162) |
| HSL | hsl(318, 58%, 53%) |
| HSV | hsv(318, 68%, 80%) |
| CMYK | cmyk(0%, 67.6%, 20.6%, 20%) |
| CIE-LAB | lab(51.09, 63.56, -22.82) |
| CIE-LCH | lch(51.09, 67.53, 340.25°) |
| OKLab | oklab(60.47% 0.1904 -0.0611) |
| OKLCH | oklch(60.47% 0.2 342.2) |
| XYZ | xyz(33.3727, 19.3457, 36.1519) |
| Luminance | 0.1934 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 5.01
Purplish Pink
#CE5DAE
ΔE00 5.48
Pinky Purple
#C94CBE
ΔE00 5.52
Purpleish Pink
#DF4EC8
ΔE00 7.36
Mediumvioletred
#C71585
ΔE00 7.37
Bright Pink
#FE01B1
ΔE00 7.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CC42A2 #42CC6C
analogous
#B142CC #CC42A2 #CC425D
triadic
#CC42A2 #A2CC42 #42A2CC
tetradic
#CC42A2 #CCB142 #42CC6C #425DCC
square
#CC42A2 #CCB142 #42CC6C #425DCC
split-complementary
#CC42A2 #5DCC42 #42CCB1
monochromatic
#741F5A #A42C80 #CC42A2 #D972BA #E6A2D1
Accessibility & contrast
On white
4.31
#CC42A2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.87
#CC42A2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #CC42A2
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CC42A2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CC42A2 | 1.00 | 4.31 | 4.87 | 4.87 |
| #FFFFFF | 4.31 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.87 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.87 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4E6BA5
Deuteranopia (green-blind)
#78829F
Tritanopia (blue-blind)
#D8436C
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #cc42a2; /* rgb */ color: rgb(204, 66, 162); /* oklch */ color: oklch(60.5% 0.200 342.2);
Tailwind
colors: {
custom: {
50: '#df81bd',
500: '#cc42a2',
950: '#000000',
},
}SCSS
$custom: #cc42a2; $custom-light: #df81bd; $custom-dark: #000000;
JSON
{
"hex": "#cc42a2",
"rgb": {
"r": 204,
"g": 66,
"b": 162
},
"hsl": {
"h": 318.261,
"s": 57.5,
"l": 52.941
},
"oklch": {
"l": 0.60472,
"c": 0.19998,
"h": 342.2
},
"luminance": 0.19342
}Semantic roles & 50–950 ramp
primary
#CC42A2
secondary
#97D3A9
accent
#E17647
background
#FEF8FB
surface
#FCEFF6
border
#D5CAD0
text
#160B12
muted
#847C81