#CC42A1#CC42A1
#CC42A1 is a mid, vivid pink. Relative luminance 0.193; OKLCH L 60.4% C 0.199 H 342.6°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).
Color values
| HEX | #CC42A1 |
|---|---|
| RGB | rgb(204, 66, 161) |
| HSL | hsl(319, 58%, 53%) |
| HSV | hsv(319, 68%, 80%) |
| CMYK | cmyk(0%, 67.6%, 21.1%, 20%) |
| CIE-LAB | lab(51.05, 63.43, -22.29) |
| CIE-LCH | lch(51.05, 67.23, 340.64°) |
| OKLab | oklab(60.43% 0.1902 -0.0597) |
| OKLCH | oklch(60.43% 0.199 342.6) |
| XYZ | xyz(33.2841, 19.3103, 35.6856) |
| Luminance | 0.1931 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 5.21
Purplish Pink
#CE5DAE
ΔE00 5.53
Pinky Purple
#C94CBE
ΔE00 5.71
Mediumvioletred
#C71585
ΔE00 7.25
Purpleish Pink
#DF4EC8
ΔE00 7.51
Bright Pink
#FE01B1
ΔE00 7.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CC42A1 #42CC6D
analogous
#B242CC #CC42A1 #CC425C
triadic
#CC42A1 #A1CC42 #42A1CC
tetradic
#CC42A1 #CCB242 #42CC6D #425CCC
square
#CC42A1 #CCB242 #42CC6D #425CCC
split-complementary
#CC42A1 #5CCC42 #42CCB2
monochromatic
#741F5A #A42C7F #CC42A1 #D972B9 #E6A2D1
Accessibility & contrast
On white
4.32
#CC42A1 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.86
#CC42A1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #CC42A1
4.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CC42A1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CC42A1 | 1.00 | 4.32 | 4.86 | 4.86 |
| #FFFFFF | 4.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.86 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.86 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4E6BA4
Deuteranopia (green-blind)
#78829E
Tritanopia (blue-blind)
#D8436C
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #cc42a1; /* rgb */ color: rgb(204, 66, 161); /* oklch */ color: oklch(60.4% 0.199 342.6);
Tailwind
colors: {
custom: {
50: '#df81bd',
500: '#cc42a1',
950: '#000000',
},
}SCSS
$custom: #cc42a1; $custom-light: #df81bd; $custom-dark: #000000;
JSON
{
"hex": "#cc42a1",
"rgb": {
"r": 204,
"g": 66,
"b": 161
},
"hsl": {
"h": 318.696,
"s": 57.5,
"l": 52.941
},
"oklch": {
"l": 0.60428,
"c": 0.19935,
"h": 342.6
},
"luminance": 0.19307
}Semantic roles & 50–950 ramp
primary
#CC42A1
secondary
#97D3AA
accent
#E17747
background
#FEF8FB
surface
#FCEFF6
border
#D5CAD0
text
#160B12
muted
#847C81