#C42F98#C42F98
#C42F98 is a mid, highly saturated pink. Relative luminance 0.160; OKLCH L 57.1% C 0.210 H 342.8°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).
Color values
| HEX | #C42F98 |
|---|---|
| RGB | rgb(196, 47, 152) |
| HSL | hsl(318, 61%, 48%) |
| HSV | hsv(318, 76%, 77%) |
| CMYK | cmyk(0%, 76%, 22.4%, 23.1%) |
| CIE-LAB | lab(47.03, 66.68, -23.25) |
| CIE-LCH | lch(47.03, 70.62, 340.77°) |
| OKLab | oklab(57.12% 0.2009 -0.0623) |
| OKLCH | oklch(57.12% 0.21 342.8) |
| XYZ | xyz(29.4500, 16.0389, 31.2445) |
| Luminance | 0.1604 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Mediumvioletred
#C71585
ΔE00 4.15
Purpley Pink
#C83CB9
ΔE00 6.18
Ugly Purple
#A442A0
ΔE00 6.72
Magenta (survey)
#C20078
ΔE00 6.73
Medium Purple
#9E43A2
ΔE00 8.12
Pinky Purple
#C94CBE
ΔE00 8.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C42F98 #2FC45B
analogous
#A52FC4 #C42F98 #C42F4E
triadic
#C42F98 #98C42F #2F98C4
tetradic
#C42F98 #C4A52F #2FC45B #2F4EC4
square
#C42F98 #C4A52F #2FC45B #2F4EC4
split-complementary
#C42F98 #4EC42F #2FC4A5
monochromatic
#61174B #932372 #C42F98 #D759B2 #E38AC9
Accessibility & contrast
On white
4.99
#C42F98 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.21
#C42F98 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #C42F98
4.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C42F98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##C42F98 | 1.00 | 4.99 | 4.21 | 4.99 |
| #FFFFFF | 4.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3F609B
Deuteranopia (green-blind)
#6E7895
Tritanopia (blue-blind)
#D13060
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #c42f98; /* rgb */ color: rgb(196, 47, 152); /* oklch */ color: oklch(57.1% 0.210 342.8);
Tailwind
colors: {
custom: {
50: '#da77b6',
500: '#c42f98',
950: '#000000',
},
}SCSS
$custom: #c42f98; $custom-light: #da77b6; $custom-dark: #000000;
JSON
{
"hex": "#c42f98",
"rgb": {
"r": 196,
"g": 47,
"b": 152
},
"hsl": {
"h": 317.718,
"s": 61.317,
"l": 47.647
},
"oklch": {
"l": 0.57124,
"c": 0.2103,
"h": 342.8
},
"luminance": 0.16036
}Semantic roles & 50–950 ramp
primary
#C42F98
secondary
#82CD98
accent
#E47343
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150A11
muted
#837C80