#7E171B#7E171B
#7E171B is a dark, vivid red. Relative luminance 0.051; OKLCH L 38.8% C 0.137 H 24.8°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).
Color values
| HEX | #7E171B |
|---|---|
| RGB | rgb(126, 23, 27) |
| HSL | hsl(358, 69%, 29%) |
| HSV | hsv(358, 82%, 49%) |
| CMYK | cmyk(0%, 81.7%, 78.6%, 50.6%) |
| CIE-LAB | lab(27.10, 43.04, 25.87) |
| CIE-LCH | lch(27.10, 50.22, 31.00°) |
| OKLab | oklab(38.82% 0.1247 0.0576) |
| OKLCH | oklch(38.82% 0.137 24.8) |
| XYZ | xyz(9.1095, 5.1290, 1.5470) |
| Luminance | 0.0513 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Crimson (survey)
#8C000F
ΔE00 4.10
Burgundy
#800020
ΔE00 4.28
Blood
#770001
ΔE00 5.04
Reddy Brown
#6E1005
ΔE00 5.49
Maroon
#800000
ΔE00 5.52
Wine Red
#7B0323
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E171B #177E7A
analogous
#7E174F #7E171B #7E4717
triadic
#7E171B #1B7E17 #171B7E
tetradic
#7E171B #4F7E17 #177E7A #47177E
square
#7E171B #4F7E17 #177E7A #47177E
split-complementary
#7E171B #177E47 #174F7E
monochromatic
#1A0506 #4A0E10 #7E171B #B22026 #DA353C
Accessibility & contrast
On white
10.37
#7E171B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#7E171B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E171B
10.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E171B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E171B | 1.00 | 10.37 | 2.03 | 10.37 |
| #FFFFFF | 10.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#37321A
Deuteranopia (green-blind)
#514817
Tritanopia (blue-blind)
#8B001A
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #7e171b; /* rgb */ color: rgb(126, 23, 27); /* oklch */ color: oklch(38.8% 0.137 24.8);
Tailwind
colors: {
custom: {
50: '#ab5f57',
500: '#7e171b',
950: '#000000',
},
}SCSS
$custom: #7e171b; $custom-light: #ab5f57; $custom-dark: #000000;
JSON
{
"hex": "#7e171b",
"rgb": {
"r": 126,
"g": 23,
"b": 27
},
"hsl": {
"h": 357.67,
"s": 69.128,
"l": 29.216
},
"oklch": {
"l": 0.38822,
"c": 0.13735,
"h": 24.8
},
"luminance": 0.05128
}Semantic roles & 50–950 ramp
primary
#7E171B
secondary
#3EB3AE
accent
#ECE53C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120503
muted
#817978