#B42818#B42818
#B42818 is a mid, vivid red. Relative luminance 0.113; OKLCH L 50.4% C 0.179 H 30.5°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).
Color values
| HEX | #B42818 |
|---|---|
| RGB | rgb(180, 40, 24) |
| HSL | hsl(6, 76%, 40%) |
| HSV | hsv(6, 87%, 71%) |
| CMYK | cmyk(0%, 77.8%, 86.7%, 29.4%) |
| CIE-LAB | lab(40.06, 54.49, 43.86) |
| CIE-LCH | lch(40.06, 69.95, 38.84°) |
| OKLab | oklab(50.43% 0.1538 0.0907) |
| OKLCH | oklch(50.43% 0.179 30.5) |
| XYZ | xyz(19.7485, 11.2900, 2.0033) |
| Luminance | 0.1129 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Rusty Red
#AF2F0D
ΔE00 3.33
Firebrick
#B22222
ΔE00 3.48
Scarlet
#BE0119
ΔE00 3.75
Rust Red
#AA2704
ΔE00 3.98
Brick
#A03623
ΔE00 4.12
Darkish Red
#A90308
ΔE00 4.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B42818 #18A4B4
analogous
#B41856 #B42818 #B47618
triadic
#B42818 #18B428 #2818B4
tetradic
#B42818 #56B418 #18A4B4 #7618B4
square
#B42818 #56B418 #18A4B4 #7618B4
split-complementary
#B42818 #18B476 #1856B4
monochromatic
#48100A #7E1C11 #B42818 #E23A27 #E96B5D
Accessibility & contrast
On white
6.45
#B42818 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.26
#B42818 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B42818
6.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B42818 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B42818 | 1.00 | 6.45 | 3.26 | 6.45 |
| #FFFFFF | 6.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#554B14
Deuteranopia (green-blind)
#77690E
Tritanopia (blue-blind)
#C70026
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #b42818; /* rgb */ color: rgb(180, 40, 24); /* oklch */ color: oklch(50.4% 0.179 30.5);
Tailwind
colors: {
custom: {
50: '#d56e58',
500: '#b42818',
950: '#000000',
},
}SCSS
$custom: #b42818; $custom-light: #d56e58; $custom-dark: #000000;
JSON
{
"hex": "#b42818",
"rgb": {
"r": 180,
"g": 40,
"b": 24
},
"hsl": {
"h": 6.154,
"s": 76.471,
"l": 40
},
"oklch": {
"l": 0.50426,
"c": 0.17857,
"h": 30.5
},
"luminance": 0.11287
}Semantic roles & 50–950 ramp
primary
#B42818
secondary
#5BC1CD
accent
#E0F335
background
#FEF7F5
surface
#FDEDE9
border
#D5C8C5
text
#160803
muted
#847B78