#B42917#B42917
#B42917 is a mid, vivid red. Relative luminance 0.114; OKLCH L 50.5% C 0.178 H 31.0°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).
Color values
| HEX | #B42917 |
|---|---|
| RGB | rgb(180, 41, 23) |
| HSL | hsl(7, 77%, 40%) |
| HSV | hsv(7, 87%, 71%) |
| CMYK | cmyk(0%, 77.2%, 87.2%, 29.4%) |
| CIE-LAB | lab(40.17, 54.15, 44.42) |
| CIE-LCH | lch(40.17, 70.04, 39.37°) |
| OKLab | oklab(50.5% 0.1526 0.0916) |
| OKLCH | oklch(50.5% 0.178 31) |
| XYZ | xyz(19.7725, 11.3542, 1.9609) |
| Luminance | 0.1135 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Rusty Red
#AF2F0D
ΔE00 2.97
Rust Red
#AA2704
ΔE00 3.71
Firebrick
#B22222
ΔE00 3.85
Scarlet
#BE0119
ΔE00 4.08
Brick
#A03623
ΔE00 4.17
Brownish Red
#9E3623
ΔE00 4.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B42917 #17A2B4
analogous
#B41754 #B42917 #B47817
triadic
#B42917 #17B429 #2917B4
tetradic
#B42917 #54B417 #17A2B4 #7817B4
square
#B42917 #54B417 #17A2B4 #7817B4
split-complementary
#B42917 #17B478 #1754B4
monochromatic
#471009 #7E1D10 #B42917 #E33B25 #EA6C5B
Accessibility & contrast
On white
6.42
#B42917 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.27
#B42917 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B42917
6.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B42917 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B42917 | 1.00 | 6.42 | 3.27 | 6.42 |
| #FFFFFF | 6.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#554B12
Deuteranopia (green-blind)
#776A0D
Tritanopia (blue-blind)
#C70027
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #b42917; /* rgb */ color: rgb(180, 41, 23); /* oklch */ color: oklch(50.5% 0.178 31.0);
Tailwind
colors: {
custom: {
50: '#d56f57',
500: '#b42917',
950: '#000000',
},
}SCSS
$custom: #b42917; $custom-light: #d56f57; $custom-dark: #000000;
JSON
{
"hex": "#b42917",
"rgb": {
"r": 180,
"g": 41,
"b": 23
},
"hsl": {
"h": 6.879,
"s": 77.34,
"l": 39.804
},
"oklch": {
"l": 0.50503,
"c": 0.17796,
"h": 31
},
"luminance": 0.11351
}Semantic roles & 50–950 ramp
primary
#B42917
secondary
#59C0CE
accent
#DEF434
background
#FEF7F5
surface
#FDEDE9
border
#D5C8C5
text
#160803
muted
#847B78