#B4172F#B4172F
#B4172F is a mid, vivid red. Relative luminance 0.105; OKLCH L 49.5% C 0.187 H 21.1°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).
Color values
| HEX | #B4172F |
|---|---|
| RGB | rgb(180, 23, 47) |
| HSL | hsl(351, 77%, 40%) |
| HSV | hsv(351, 87%, 71%) |
| CMYK | cmyk(0%, 87.2%, 73.9%, 29.4%) |
| CIE-LAB | lab(38.77, 59.55, 29.73) |
| CIE-LCH | lch(38.77, 66.56, 26.53°) |
| OKLab | oklab(49.54% 0.1746 0.0673) |
| OKLCH | oklch(49.54% 0.187 21.1) |
| XYZ | xyz(19.6443, 10.5245, 3.6859) |
| Luminance | 0.1052 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Lipstick Red
#C0022F
ΔE00 2.07
Cardinal
#C41E3A
ΔE00 3.82
Brown
#A52A2A
ΔE00 3.93
Rose Red
#BE013C
ΔE00 4.34
Rouge
#AB1239
ΔE00 4.80
Firebrick
#B22222
ΔE00 4.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B4172F #17B49C
analogous
#B4177E #B4172F #B44E17
triadic
#B4172F #2FB417 #172FB4
tetradic
#B4172F #7EB417 #17B49C #4E17B4
square
#B4172F #7EB417 #17B49C #4E17B4
split-complementary
#B4172F #17B44E #177EB4
monochromatic
#470913 #7E1021 #B4172F #E32542 #EA5B71
Accessibility & contrast
On white
6.77
#B4172F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.10
#B4172F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B4172F
6.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B4172F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B4172F | 1.00 | 6.77 | 3.10 | 6.77 |
| #FFFFFF | 6.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4C462E
Deuteranopia (green-blind)
#726729
Tritanopia (blue-blind)
#C60023
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #b4172f; /* rgb */ color: rgb(180, 23, 47); /* oklch */ color: oklch(49.5% 0.187 21.1);
Tailwind
colors: {
custom: {
50: '#d46967',
500: '#b4172f',
950: '#000000',
},
}SCSS
$custom: #b4172f; $custom-light: #d46967; $custom-dark: #000000;
JSON
{
"hex": "#b4172f",
"rgb": {
"r": 180,
"g": 23,
"b": 47
},
"hsl": {
"h": 350.828,
"s": 77.34,
"l": 39.804
},
"oklch": {
"l": 0.49539,
"c": 0.18708,
"h": 21.1
},
"luminance": 0.10521
}Semantic roles & 50–950 ramp
primary
#B4172F
secondary
#59CEBC
accent
#F4D734
background
#FEF6F6
surface
#FCECEB
border
#D5C7C6
text
#160706
muted
#847A7A