#CC42B2#CC42B2
#CC42B2 is a mid, highly saturated pink. Relative luminance 0.199; OKLCH L 61.2% C 0.211 H 336.3°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).
Color values
| HEX | #CC42B2 |
|---|---|
| RGB | rgb(204, 66, 178) |
| HSL | hsl(311, 58%, 53%) |
| HSV | hsv(311, 68%, 80%) |
| CMYK | cmyk(0%, 67.6%, 12.7%, 20%) |
| CIE-LAB | lab(51.78, 65.83, -31.14) |
| CIE-LCH | lch(51.78, 72.82, 334.69°) |
| OKLab | oklab(61.2% 0.1929 -0.0847) |
| OKLCH | oklch(61.2% 0.211 336.3) |
| XYZ | xyz(34.8864, 19.9512, 44.1244) |
| Luminance | 0.1995 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 2.25
Pinky Purple
#C94CBE
ΔE00 2.67
Purpleish Pink
#DF4EC8
ΔE00 5.49
Purplish Pink
#CE5DAE
ΔE00 5.69
Pinkish Purple
#D648D7
ΔE00 6.23
Hot Magenta
#F504C9
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CC42B2 #42CC5C
analogous
#A142CC #CC42B2 #CC426D
triadic
#CC42B2 #B2CC42 #42B2CC
tetradic
#CC42B2 #CCA142 #42CC5C #426DCC
square
#CC42B2 #CCA142 #42CC5C #426DCC
split-complementary
#CC42B2 #6DCC42 #42CCA1
monochromatic
#741F64 #A42C8E #CC42B2 #D972C6 #E6A2D9
Accessibility & contrast
On white
4.21
#CC42B2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.99
#CC42B2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #CC42B2
4.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CC42B2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CC42B2 | 1.00 | 4.21 | 4.99 | 4.99 |
| #FFFFFF | 4.21 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.99 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.99 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#446EB5
Deuteranopia (green-blind)
#7283AF
Tritanopia (blue-blind)
#D64A74
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #cc42b2; /* rgb */ color: rgb(204, 66, 178); /* oklch */ color: oklch(61.2% 0.211 336.3);
Tailwind
colors: {
custom: {
50: '#df81c9',
500: '#cc42b2',
950: '#000000',
},
}SCSS
$custom: #cc42b2; $custom-light: #df81c9; $custom-dark: #000000;
JSON
{
"hex": "#cc42b2",
"rgb": {
"r": 204,
"g": 66,
"b": 178
},
"hsl": {
"h": 311.304,
"s": 57.5,
"l": 52.941
},
"oklch": {
"l": 0.61202,
"c": 0.21068,
"h": 336.3
},
"luminance": 0.19948
}Semantic roles & 50–950 ramp
primary
#CC42B2
secondary
#97D3A2
accent
#E16447
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82