#7E171A#7E171A
#7E171A is a dark, vivid red. Relative luminance 0.051; OKLCH L 38.8% C 0.137 H 25.2°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).
Color values
| HEX | #7E171A |
|---|---|
| RGB | rgb(126, 23, 26) |
| HSL | hsl(358, 69%, 29%) |
| HSV | hsv(358, 82%, 49%) |
| CMYK | cmyk(0%, 81.7%, 79.4%, 50.6%) |
| CIE-LAB | lab(27.09, 43.01, 26.48) |
| CIE-LCH | lch(27.09, 50.50, 31.62°) |
| OKLab | oklab(38.81% 0.1244 0.0586) |
| OKLCH | oklch(38.81% 0.137 25.2) |
| XYZ | xyz(9.0981, 5.1244, 1.4871) |
| Luminance | 0.0512 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Crimson (survey)
#8C000F
ΔE00 3.87
Burgundy
#800020
ΔE00 4.60
Blood
#770001
ΔE00 4.75
Maroon
#800000
ΔE00 5.19
Reddy Brown
#6E1005
ΔE00 5.22
Dark Red
#840000
ΔE00 5.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E171A #177E7B
analogous
#7E174E #7E171A #7E4817
triadic
#7E171A #1A7E17 #171A7E
tetradic
#7E171A #4E7E17 #177E7B #48177E
square
#7E171A #4E7E17 #177E7B #48177E
split-complementary
#7E171A #177E48 #174E7E
monochromatic
#1A0505 #4A0E0F #7E171A #B22025 #DA353A
Accessibility & contrast
On white
10.37
#7E171A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.02
#7E171A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E171A
10.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E171A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E171A | 1.00 | 10.37 | 2.02 | 10.37 |
| #FFFFFF | 10.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#373219
Deuteranopia (green-blind)
#514816
Tritanopia (blue-blind)
#8B001A
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #7e171a; /* rgb */ color: rgb(126, 23, 26); /* oklch */ color: oklch(38.8% 0.137 25.2);
Tailwind
colors: {
custom: {
50: '#ab5f57',
500: '#7e171a',
950: '#000000',
},
}SCSS
$custom: #7e171a; $custom-light: #ab5f57; $custom-dark: #000000;
JSON
{
"hex": "#7e171a",
"rgb": {
"r": 126,
"g": 23,
"b": 26
},
"hsl": {
"h": 358.252,
"s": 69.128,
"l": 29.216
},
"oklch": {
"l": 0.38808,
"c": 0.13747,
"h": 25.2
},
"luminance": 0.05123
}Semantic roles & 50–950 ramp
primary
#7E171A
secondary
#3EB3AF
accent
#ECE73C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120503
muted
#817978