#C042A7#C042A7
#C042A7 is a mid, vivid pink. Relative luminance 0.179; OKLCH L 58.9% C 0.195 H 336.6°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).
Color values
| HEX | #C042A7 |
|---|---|
| RGB | rgb(192, 66, 167) |
| HSL | hsl(312, 50%, 51%) |
| HSV | hsv(312, 66%, 75%) |
| CMYK | cmyk(0%, 65.6%, 13%, 24.7%) |
| CIE-LAB | lab(49.37, 61.15, -28.59) |
| CIE-LCH | lch(49.37, 67.51, 334.95°) |
| OKLab | oklab(58.91% 0.1793 -0.0776) |
| OKLCH | oklch(58.91% 0.195 336.6) |
| XYZ | xyz(30.6619, 17.8955, 38.3910) |
| Luminance | 0.1789 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 3.23
Pinky Purple
#C94CBE
ΔE00 4.69
Ugly Purple
#A442A0
ΔE00 5.72
Medium Purple
#9E43A2
ΔE00 6.98
Purplish Pink
#CE5DAE
ΔE00 7.12
Mediumvioletred
#C71585
ΔE00 7.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C042A7 #42C05B
analogous
#9A42C0 #C042A7 #C04268
triadic
#C042A7 #A7C042 #42A7C0
tetradic
#C042A7 #C09A42 #42C05B #4268C0
square
#C042A7 #C09A42 #42C05B #4268C0
split-complementary
#C042A7 #68C042 #42C09A
monochromatic
#662258 #943180 #C042A7 #CF70BC #DF9ED2
Accessibility & contrast
On white
4.59
#C042A7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.58
#C042A7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #C042A7
4.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C042A7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##C042A7 | 1.00 | 4.59 | 4.58 | 4.59 |
| #FFFFFF | 4.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4469AA
Deuteranopia (green-blind)
#6D7CA4
Tritanopia (blue-blind)
#CA496F
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #c042a7; /* rgb */ color: rgb(192, 66, 167); /* oklch */ color: oklch(58.9% 0.195 336.6);
Tailwind
colors: {
custom: {
50: '#d67fc1',
500: '#c042a7',
950: '#000000',
},
}SCSS
$custom: #c042a7; $custom-light: #d67fc1; $custom-dark: #000000;
JSON
{
"hex": "#c042a7",
"rgb": {
"r": 192,
"g": 66,
"b": 167
},
"hsl": {
"h": 311.905,
"s": 50,
"l": 50.588
},
"oklch": {
"l": 0.58914,
"c": 0.19536,
"h": 336.6
},
"luminance": 0.17893
}Semantic roles & 50–950 ramp
primary
#C042A7
secondary
#93CB9E
accent
#DA6A4E
background
#FDF8FB
surface
#FBEFF7
border
#D4CAD0
text
#150B12
muted
#837C81