#5A171B#5A171B
#5A171B is a dark, moderate red. Relative luminance 0.029; OKLCH L 31.8% C 0.098 H 21.4°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).
Color values
| HEX | #5A171B |
|---|---|
| RGB | rgb(90, 23, 27) |
| HSL | hsl(356, 59%, 22%) |
| HSV | hsv(356, 74%, 35%) |
| CMYK | cmyk(0%, 74.4%, 70%, 64.7%) |
| CIE-LAB | lab(19.50, 30.78, 15.02) |
| CIE-LCH | lch(19.50, 34.25, 26.01°) |
| OKLab | oklab(31.8% 0.0909 0.0357) |
| OKLCH | oklch(31.8% 0.098 21.4) |
| XYZ | xyz(4.7212, 2.8663, 1.3413) |
| Luminance | 0.0287 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Claret
#680018
ΔE00 4.36
Dried Blood
#4B0101
ΔE00 5.18
Mahogany
#4A0100
ΔE00 5.34
Rosewood
#65000B
ΔE00 5.41
Maroon (survey)
#650021
ΔE00 5.75
Deep Brown
#410200
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A171B #175A56
analogous
#5A173D #5A171B #5A3517
triadic
#5A171B #1B5A17 #171B5A
tetradic
#5A171B #3D5A17 #175A56 #35175A
square
#5A171B #3D5A17 #175A56 #35175A
split-complementary
#5A171B #175A35 #173D5A
monochromatic
#180607 #290B0C #5A171B #8B232A #BB3038
Accessibility & contrast
On white
13.35
#5A171B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#5A171B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A171B
13.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A171B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A171B | 1.00 | 13.35 | 1.57 | 13.35 |
| #FFFFFF | 13.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#29261B
Deuteranopia (green-blind)
#3A3419
Tritanopia (blue-blind)
#630519
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #5a171b; /* rgb */ color: rgb(90, 23, 27); /* oklch */ color: oklch(31.8% 0.098 21.4);
Tailwind
colors: {
custom: {
50: '#8e5957',
500: '#5a171b',
950: '#000000',
},
}SCSS
$custom: #5a171b; $custom-light: #8e5957; $custom-dark: #000000;
JSON
{
"hex": "#5a171b",
"rgb": {
"r": 90,
"g": 23,
"b": 27
},
"hsl": {
"h": 356.418,
"s": 59.292,
"l": 22.157
},
"oklch": {
"l": 0.31795,
"c": 0.09762,
"h": 21.4
},
"luminance": 0.02866
}Semantic roles & 50–950 ramp
primary
#5A171B
secondary
#3C918C
accent
#E2D945
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0403
muted
#7E7978