#5A171A#5A171A
#5A171A is a dark, moderate red. Relative luminance 0.029; OKLCH L 31.8% C 0.098 H 22.3°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).
Color values
| HEX | #5A171A |
|---|---|
| RGB | rgb(90, 23, 26) |
| HSL | hsl(357, 59%, 22%) |
| HSV | hsv(357, 74%, 35%) |
| CMYK | cmyk(0%, 74.4%, 71.1%, 64.7%) |
| CIE-LAB | lab(19.48, 30.71, 15.68) |
| CIE-LCH | lch(19.48, 34.49, 27.05°) |
| OKLab | oklab(31.78% 0.0904 0.037) |
| OKLCH | oklch(31.78% 0.098 22.3) |
| XYZ | xyz(4.7098, 2.8617, 1.2814) |
| Luminance | 0.0286 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Claret
#680018
ΔE00 4.42
Dried Blood
#4B0101
ΔE00 4.98
Rosewood
#65000B
ΔE00 5.13
Mahogany
#4A0100
ΔE00 5.14
Maroon (survey)
#650021
ΔE00 6.10
Deep Brown
#410200
ΔE00 6.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A171A #175A57
analogous
#5A173C #5A171A #5A3517
triadic
#5A171A #1A5A17 #171A5A
tetradic
#5A171A #3C5A17 #175A57 #35175A
square
#5A171A #3C5A17 #175A57 #35175A
split-complementary
#5A171A #175A35 #173C5A
monochromatic
#180607 #290B0C #5A171A #8B2328 #BB3036
Accessibility & contrast
On white
13.36
#5A171A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#5A171A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A171A
13.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A171A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A171A | 1.00 | 13.36 | 1.57 | 13.36 |
| #FFFFFF | 13.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#29261A
Deuteranopia (green-blind)
#3A3418
Tritanopia (blue-blind)
#630519
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #5a171a; /* rgb */ color: rgb(90, 23, 26); /* oklch */ color: oklch(31.8% 0.098 22.3);
Tailwind
colors: {
custom: {
50: '#8e5956',
500: '#5a171a',
950: '#000000',
},
}SCSS
$custom: #5a171a; $custom-light: #8e5956; $custom-dark: #000000;
JSON
{
"hex": "#5a171a",
"rgb": {
"r": 90,
"g": 23,
"b": 26
},
"hsl": {
"h": 357.313,
"s": 59.292,
"l": 22.157
},
"oklch": {
"l": 0.31775,
"c": 0.09772,
"h": 22.3
},
"luminance": 0.02861
}Semantic roles & 50–950 ramp
primary
#5A171A
secondary
#3C918D
accent
#E2DB45
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0403
muted
#7E7978