#5B171B#5B171B
#5B171B is a dark, moderate red. Relative luminance 0.029; OKLCH L 32.0% C 0.099 H 21.6°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).
Color values
| HEX | #5B171B |
|---|---|
| RGB | rgb(91, 23, 27) |
| HSL | hsl(356, 60%, 22%) |
| HSV | hsv(356, 75%, 36%) |
| CMYK | cmyk(0%, 74.7%, 70.3%, 64.3%) |
| CIE-LAB | lab(19.71, 31.15, 15.32) |
| CIE-LCH | lch(19.71, 34.71, 26.19°) |
| OKLab | oklab(31.99% 0.0919 0.0363) |
| OKLCH | oklch(31.99% 0.099 21.6) |
| XYZ | xyz(4.8191, 2.9168, 1.3459) |
| Luminance | 0.0292 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Claret
#680018
ΔE00 4.20
Dried Blood
#4B0101
ΔE00 5.23
Rosewood
#65000B
ΔE00 5.23
Mahogany
#4A0100
ΔE00 5.40
Maroon (survey)
#650021
ΔE00 5.74
Deep Brown
#410200
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B171B #175B57
analogous
#5B173D #5B171B #5B3517
triadic
#5B171B #1B5B17 #171B5B
tetradic
#5B171B #3D5B17 #175B57 #35175B
square
#5B171B #3D5B17 #175B57 #35175B
split-complementary
#5B171B #175B35 #173D5B
monochromatic
#180607 #2A0B0D #5B171B #8C2329 #BD3038
Accessibility & contrast
On white
13.26
#5B171B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#5B171B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B171B
13.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B171B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B171B | 1.00 | 13.26 | 1.58 | 13.26 |
| #FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2A261B
Deuteranopia (green-blind)
#3B3519
Tritanopia (blue-blind)
#640519
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #5b171b; /* rgb */ color: rgb(91, 23, 27); /* oklch */ color: oklch(32.0% 0.099 21.6);
Tailwind
colors: {
custom: {
50: '#8f5957',
500: '#5b171b',
950: '#000000',
},
}SCSS
$custom: #5b171b; $custom-light: #8f5957; $custom-dark: #000000;
JSON
{
"hex": "#5b171b",
"rgb": {
"r": 91,
"g": 23,
"b": 27
},
"hsl": {
"h": 356.471,
"s": 59.649,
"l": 22.353
},
"oklch": {
"l": 0.31988,
"c": 0.09882,
"h": 21.6
},
"luminance": 0.02916
}Semantic roles & 50–950 ramp
primary
#5B171B
secondary
#3C928D
accent
#E3DA45
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0403
muted
#7E7978