#D42F51#D42F51
#D42F51 is a mid, vivid red. Relative luminance 0.166; OKLCH L 57.5% C 0.199 H 15.2°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).
Color values
| HEX | #D42F51 |
|---|---|
| RGB | rgb(212, 47, 81) |
| HSL | hsl(348, 66%, 51%) |
| HSV | hsv(348, 78%, 83%) |
| CMYK | cmyk(0%, 77.8%, 61.8%, 16.9%) |
| CIE-LAB | lab(47.79, 64.18, 21.49) |
| CIE-LCH | lch(47.79, 67.68, 18.51°) |
| OKLab | oklab(57.51% 0.1923 0.0522) |
| OKLCH | oklch(57.51% 0.199 15.2) |
| XYZ | xyz(29.6562, 16.6286, 9.4311) |
| Luminance | 0.1662 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Lipstick
#D5174E
ΔE00 2.30
Raspberry
#E30B5C
ΔE00 4.34
Cherry
#DE3163
ΔE00 4.57
Ruby
#CA0147
ΔE00 4.95
Crimson
#DC143C
ΔE00 5.05
Pink Red
#F5054F
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D42F51 #2FD4B2
analogous
#D42FA4 #D42F51 #D45F2F
triadic
#D42F51 #51D42F #2F51D4
tetradic
#D42F51 #A4D42F #2FD4B2 #5F2FD4
square
#D42F51 #A4D42F #2FD4B2 #5F2FD4
split-complementary
#D42F51 #2FD45F #2FA4D4
monochromatic
#71172A #A4223D #D42F51 #DE627B #E994A6
Accessibility & contrast
On white
4.86
#D42F51 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.32
#D42F51 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #D42F51
4.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D42F51 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##D42F51 | 1.00 | 4.86 | 4.32 | 4.86 |
| #FFFFFF | 4.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5F5C51
Deuteranopia (green-blind)
#887E4C
Tritanopia (blue-blind)
#E8003E
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #d42f51; /* rgb */ color: rgb(212, 47, 81); /* oklch */ color: oklch(57.5% 0.199 15.2);
Tailwind
colors: {
custom: {
50: '#e97781',
500: '#d42f51',
950: '#000000',
},
}SCSS
$custom: #d42f51; $custom-light: #e97781; $custom-dark: #000000;
JSON
{
"hex": "#d42f51",
"rgb": {
"r": 212,
"g": 47,
"b": 81
},
"hsl": {
"h": 347.636,
"s": 65.737,
"l": 50.784
},
"oklch": {
"l": 0.57509,
"c": 0.19927,
"h": 15.2
},
"luminance": 0.16624
}Semantic roles & 50–950 ramp
primary
#D42F51
secondary
#8BD4C5
accent
#E9C63F
background
#FFF7F7
surface
#FFEEEE
border
#D7C9C9
text
#180A0A
muted
#867C7C