#CC42B4#CC42B4
#CC42B4 is a mid, highly saturated pink. Relative luminance 0.200; OKLCH L 61.3% C 0.212 H 335.6°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).
Color values
| HEX | #CC42B4 |
|---|---|
| RGB | rgb(204, 66, 180) |
| HSL | hsl(310, 58%, 53%) |
| HSV | hsv(310, 68%, 80%) |
| CMYK | cmyk(0%, 67.6%, 11.8%, 20%) |
| CIE-LAB | lab(51.87, 66.13, -32.16) |
| CIE-LCH | lch(51.87, 73.53, 334.06°) |
| OKLab | oklab(61.3% 0.1931 -0.0876) |
| OKLCH | oklch(61.3% 0.212 335.6) |
| XYZ | xyz(35.0887, 20.0321, 45.1897) |
| Luminance | 0.2003 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 1.99
Pinky Purple
#C94CBE
ΔE00 2.37
Purpleish Pink
#DF4EC8
ΔE00 5.34
Purplish Pink
#CE5DAE
ΔE00 5.82
Pinkish Purple
#D648D7
ΔE00 5.90
Hot Magenta
#F504C9
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CC42B4 #42CC5A
analogous
#9F42CC #CC42B4 #CC426F
triadic
#CC42B4 #B4CC42 #42B4CC
tetradic
#CC42B4 #CC9F42 #42CC5A #426FCC
square
#CC42B4 #CC9F42 #42CC5A #426FCC
split-complementary
#CC42B4 #6FCC42 #42CC9F
monochromatic
#741F65 #A42C90 #CC42B4 #D972C7 #E6A2DA
Accessibility & contrast
On white
4.20
#CC42B4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.01
#CC42B4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #CC42B4
5.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CC42B4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CC42B4 | 1.00 | 4.20 | 5.01 | 5.01 |
| #FFFFFF | 4.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.01 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.01 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#436EB7
Deuteranopia (green-blind)
#7183B1
Tritanopia (blue-blind)
#D64B75
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #cc42b4; /* rgb */ color: rgb(204, 66, 180); /* oklch */ color: oklch(61.3% 0.212 335.6);
Tailwind
colors: {
custom: {
50: '#df81cb',
500: '#cc42b4',
950: '#000000',
},
}SCSS
$custom: #cc42b4; $custom-light: #df81cb; $custom-dark: #000000;
JSON
{
"hex": "#cc42b4",
"rgb": {
"r": 204,
"g": 66,
"b": 180
},
"hsl": {
"h": 310.435,
"s": 57.5,
"l": 52.941
},
"oklch": {
"l": 0.61299,
"c": 0.21209,
"h": 335.6
},
"luminance": 0.20029
}Semantic roles & 50–950 ramp
primary
#CC42B4
secondary
#97D3A1
accent
#E16247
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82