#CC42B3#CC42B3
#CC42B3 is a mid, highly saturated pink. Relative luminance 0.200; OKLCH L 61.3% C 0.211 H 335.9°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).
Color values
| HEX | #CC42B3 |
|---|---|
| RGB | rgb(204, 66, 179) |
| HSL | hsl(311, 58%, 53%) |
| HSV | hsv(311, 68%, 80%) |
| CMYK | cmyk(0%, 67.6%, 12.3%, 20%) |
| CIE-LAB | lab(51.83, 65.98, -31.65) |
| CIE-LCH | lch(51.83, 73.18, 334.37°) |
| OKLab | oklab(61.25% 0.193 -0.0862) |
| OKLCH | oklch(61.25% 0.211 335.9) |
| XYZ | xyz(34.9872, 19.9915, 44.6552) |
| Luminance | 0.1999 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 2.12
Pinky Purple
#C94CBE
ΔE00 2.52
Purpleish Pink
#DF4EC8
ΔE00 5.41
Purplish Pink
#CE5DAE
ΔE00 5.76
Pinkish Purple
#D648D7
ΔE00 6.07
Hot Magenta
#F504C9
ΔE00 6.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CC42B3 #42CC5B
analogous
#A042CC #CC42B3 #CC426E
triadic
#CC42B3 #B3CC42 #42B3CC
tetradic
#CC42B3 #CCA042 #42CC5B #426ECC
square
#CC42B3 #CCA042 #42CC5B #426ECC
split-complementary
#CC42B3 #6ECC42 #42CCA0
monochromatic
#741F65 #A42C8F #CC42B3 #D972C6 #E6A2DA
Accessibility & contrast
On white
4.20
#CC42B3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.00
#CC42B3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #CC42B3
5.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CC42B3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CC42B3 | 1.00 | 4.20 | 5.00 | 5.00 |
| #FFFFFF | 4.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.00 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.00 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#436EB6
Deuteranopia (green-blind)
#7183B0
Tritanopia (blue-blind)
#D64B75
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #cc42b3; /* rgb */ color: rgb(204, 66, 179); /* oklch */ color: oklch(61.3% 0.211 335.9);
Tailwind
colors: {
custom: {
50: '#df81ca',
500: '#cc42b3',
950: '#000000',
},
}SCSS
$custom: #cc42b3; $custom-light: #df81ca; $custom-dark: #000000;
JSON
{
"hex": "#cc42b3",
"rgb": {
"r": 204,
"g": 66,
"b": 179
},
"hsl": {
"h": 310.87,
"s": 57.5,
"l": 52.941
},
"oklch": {
"l": 0.6125,
"c": 0.21139,
"h": 335.9
},
"luminance": 0.19988
}Semantic roles & 50–950 ramp
primary
#CC42B3
secondary
#97D3A2
accent
#E16347
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82