#A51F42#A51F42
#A51F42 is a mid, vivid pink. Relative luminance 0.094; OKLCH L 47.6% C 0.168 H 12.3°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).
Color values
| HEX | #A51F42 |
|---|---|
| RGB | rgb(165, 31, 66) |
| HSL | hsl(344, 68%, 38%) |
| HSV | hsv(344, 81%, 65%) |
| CMYK | cmyk(0%, 81.2%, 60%, 35.3%) |
| CIE-LAB | lab(36.70, 54.53, 14.46) |
| CIE-LCH | lch(36.70, 56.41, 14.85°) |
| OKLab | oklab(47.58% 0.1646 0.0358) |
| OKLCH | oklch(47.58% 0.168 12.3) |
| XYZ | xyz(16.9922, 9.3752, 6.0681) |
| Luminance | 0.0937 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Rouge
#AB1239
ΔE00 2.87
Cranberry
#9E003A
ΔE00 3.12
Raspberry (survey)
#B00149
ΔE00 3.27
Purplish Red
#B0054B
ΔE00 3.57
Rose Red
#BE013C
ΔE00 5.33
Purple Red
#990147
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A51F42 #1FA582
analogous
#A51F85 #A51F42 #A53F1F
triadic
#A51F42 #42A51F #1F42A5
tetradic
#A51F42 #85A51F #1FA582 #3F1FA5
square
#A51F42 #85A51F #1FA582 #3F1FA5
split-complementary
#A51F42 #1FA53F #1F85A5
monochromatic
#3E0C19 #71152D #A51F42 #D72A57 #E15E80
Accessibility & contrast
On white
7.31
#A51F42 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.87
#A51F42 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #A51F42
7.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A51F42 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A51F42 | 1.00 | 7.31 | 2.87 | 7.31 |
| #FFFFFF | 7.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#464542
Deuteranopia (green-blind)
#68603E
Tritanopia (blue-blind)
#B5002E
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #a51f42; /* rgb */ color: rgb(165, 31, 66); /* oklch */ color: oklch(47.6% 0.168 12.3);
Tailwind
colors: {
custom: {
50: '#c76976',
500: '#a51f42',
950: '#000000',
},
}SCSS
$custom: #a51f42; $custom-light: #c76976; $custom-dark: #000000;
JSON
{
"hex": "#a51f42",
"rgb": {
"r": 165,
"g": 31,
"b": 66
},
"hsl": {
"h": 344.328,
"s": 68.367,
"l": 38.431
},
"oklch": {
"l": 0.4758,
"c": 0.16844,
"h": 12.3
},
"luminance": 0.09373
}Semantic roles & 50–950 ramp
primary
#A51F42
secondary
#5BC5A9
accent
#EBBE3D
background
#FDF6F7
surface
#FAECED
border
#D3C7C8
text
#140708
muted
#837A7B