#C42F9D#C42F9D
#C42F9D is a mid, highly saturated pink. Relative luminance 0.162; OKLCH L 57.4% C 0.213 H 340.9°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).
Color values
| HEX | #C42F9D |
|---|---|
| RGB | rgb(196, 47, 157) |
| HSL | hsl(316, 61%, 48%) |
| HSV | hsv(316, 76%, 77%) |
| CMYK | cmyk(0%, 76%, 19.9%, 23.1%) |
| CIE-LAB | lab(47.24, 67.33, -25.91) |
| CIE-LCH | lch(47.24, 72.14, 338.96°) |
| OKLab | oklab(57.35% 0.2016 -0.0698) |
| OKLCH | oklch(57.35% 0.213 340.9) |
| XYZ | xyz(29.8682, 16.2062, 33.4469) |
| Luminance | 0.1620 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Mediumvioletred
#C71585
ΔE00 5.02
Purpley Pink
#C83CB9
ΔE00 5.30
Ugly Purple
#A442A0
ΔE00 6.22
Pinky Purple
#C94CBE
ΔE00 7.45
Magenta (survey)
#C20078
ΔE00 7.58
Medium Purple
#9E43A2
ΔE00 7.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C42F9D #2FC456
analogous
#A12FC4 #C42F9D #C42F52
triadic
#C42F9D #9DC42F #2F9DC4
tetradic
#C42F9D #C4A12F #2FC456 #2F52C4
square
#C42F9D #C4A12F #2FC456 #2F52C4
split-complementary
#C42F9D #52C42F #2FC4A1
monochromatic
#61174E #932375 #C42F9D #D759B6 #E38ACC
Accessibility & contrast
On white
4.95
#C42F9D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.24
#C42F9D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #C42F9D
4.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C42F9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##C42F9D | 1.00 | 4.95 | 4.24 | 4.95 |
| #FFFFFF | 4.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3C61A0
Deuteranopia (green-blind)
#6C799A
Tritanopia (blue-blind)
#D03363
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #c42f9d; /* rgb */ color: rgb(196, 47, 157); /* oklch */ color: oklch(57.4% 0.213 340.9);
Tailwind
colors: {
custom: {
50: '#da77ba',
500: '#c42f9d',
950: '#000000',
},
}SCSS
$custom: #c42f9d; $custom-light: #da77ba; $custom-dark: #000000;
JSON
{
"hex": "#c42f9d",
"rgb": {
"r": 196,
"g": 47,
"b": 157
},
"hsl": {
"h": 315.705,
"s": 61.317,
"l": 47.647
},
"oklch": {
"l": 0.57353,
"c": 0.21336,
"h": 340.9
},
"luminance": 0.16203
}Semantic roles & 50–950 ramp
primary
#C42F9D
secondary
#82CD95
accent
#E46E43
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150A11
muted
#837C80