#C042A2#C042A2
#C042A2 is a mid, vivid pink. Relative luminance 0.177; OKLCH L 58.7% C 0.192 H 338.5°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).
Color values
| HEX | #C042A2 |
|---|---|
| RGB | rgb(192, 66, 162) |
| HSL | hsl(314, 50%, 51%) |
| HSV | hsv(314, 66%, 75%) |
| CMYK | cmyk(0%, 65.6%, 15.6%, 24.7%) |
| CIE-LAB | lab(49.15, 60.41, -25.98) |
| CIE-LCH | lch(49.15, 65.76, 336.73°) |
| OKLab | oklab(58.68% 0.1785 -0.0702) |
| OKLCH | oklch(58.68% 0.192 338.5) |
| XYZ | xyz(30.2086, 17.7142, 36.0036) |
| Luminance | 0.1771 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 4.15
Pinky Purple
#C94CBE
ΔE00 5.46
Ugly Purple
#A442A0
ΔE00 5.96
Purplish Pink
#CE5DAE
ΔE00 7.08
Mediumvioletred
#C71585
ΔE00 7.09
Medium Purple
#9E43A2
ΔE00 7.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C042A2 #42C060
analogous
#9F42C0 #C042A2 #C04263
triadic
#C042A2 #A2C042 #42A2C0
tetradic
#C042A2 #C09F42 #42C060 #4263C0
square
#C042A2 #C09F42 #42C060 #4263C0
split-complementary
#C042A2 #63C042 #42C09F
monochromatic
#662256 #94317C #C042A2 #CF70B9 #DF9ECF
Accessibility & contrast
On white
4.62
#C042A2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.54
#C042A2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #C042A2
4.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C042A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##C042A2 | 1.00 | 4.62 | 4.54 | 4.62 |
| #FFFFFF | 4.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4768A5
Deuteranopia (green-blind)
#6F7C9F
Tritanopia (blue-blind)
#CA476C
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #c042a2; /* rgb */ color: rgb(192, 66, 162); /* oklch */ color: oklch(58.7% 0.192 338.5);
Tailwind
colors: {
custom: {
50: '#d67fbd',
500: '#c042a2',
950: '#000000',
},
}SCSS
$custom: #c042a2; $custom-light: #d67fbd; $custom-dark: #000000;
JSON
{
"hex": "#c042a2",
"rgb": {
"r": 192,
"g": 66,
"b": 162
},
"hsl": {
"h": 314.286,
"s": 50,
"l": 50.588
},
"oklch": {
"l": 0.5868,
"c": 0.19182,
"h": 338.5
},
"luminance": 0.17712
}Semantic roles & 50–950 ramp
primary
#C042A2
secondary
#93CBA0
accent
#DA6F4E
background
#FDF8FB
surface
#FBEFF6
border
#D4CAD0
text
#150B12
muted
#837C81