#C042A9#C042A9
#C042A9 is a mid, vivid pink. Relative luminance 0.180; OKLCH L 59.0% C 0.197 H 335.8°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).
Color values
| HEX | #C042A9 |
|---|---|
| RGB | rgb(192, 66, 169) |
| HSL | hsl(311, 50%, 51%) |
| HSV | hsv(311, 66%, 75%) |
| CMYK | cmyk(0%, 65.6%, 12%, 24.7%) |
| CIE-LAB | lab(49.46, 61.46, -29.62) |
| CIE-LCH | lch(49.46, 68.22, 334.26°) |
| OKLab | oklab(59.01% 0.1795 -0.0806) |
| OKLCH | oklch(59.01% 0.197 335.8) |
| XYZ | xyz(30.8482, 17.9701, 39.3723) |
| Luminance | 0.1797 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 2.88
Pinky Purple
#C94CBE
ΔE00 4.41
Ugly Purple
#A442A0
ΔE00 5.67
Medium Purple
#9E43A2
ΔE00 6.89
Purplish Pink
#CE5DAE
ΔE00 7.16
Purpleish Pink
#DF4EC8
ΔE00 8.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C042A9 #42C059
analogous
#9842C0 #C042A9 #C0426A
triadic
#C042A9 #A9C042 #42A9C0
tetradic
#C042A9 #C09842 #42C059 #426AC0
square
#C042A9 #C09842 #42C059 #426AC0
split-complementary
#C042A9 #6AC042 #42C098
monochromatic
#662259 #943182 #C042A9 #CF70BE #DF9ED3
Accessibility & contrast
On white
4.57
#C042A9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.59
#C042A9 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C042A9
4.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C042A9 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C042A9 | 1.00 | 4.57 | 4.59 | 4.59 |
| #FFFFFF | 4.57 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.59 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.59 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4369AC
Deuteranopia (green-blind)
#6C7CA6
Tritanopia (blue-blind)
#C94A70
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #c042a9; /* rgb */ color: rgb(192, 66, 169); /* oklch */ color: oklch(59.0% 0.197 335.8);
Tailwind
colors: {
custom: {
50: '#d67fc3',
500: '#c042a9',
950: '#000000',
},
}SCSS
$custom: #c042a9; $custom-light: #d67fc3; $custom-dark: #000000;
JSON
{
"hex": "#c042a9",
"rgb": {
"r": 192,
"g": 66,
"b": 169
},
"hsl": {
"h": 310.952,
"s": 50,
"l": 50.588
},
"oklch": {
"l": 0.5901,
"c": 0.1968,
"h": 335.8
},
"luminance": 0.17967
}Semantic roles & 50–950 ramp
primary
#C042A9
secondary
#93CB9D
accent
#DA684E
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B12
muted
#837C81