#5B271F#5B271F
#5B271F is a dark, moderate red. Relative luminance 0.038; OKLCH L 34.4% C 0.078 H 30.5°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).
Color values
| HEX | #5B271F |
|---|---|
| RGB | rgb(91, 39, 31) |
| HSL | hsl(8, 49%, 24%) |
| HSV | hsv(8, 66%, 36%) |
| CMYK | cmyk(0%, 57.1%, 65.9%, 64.3%) |
| CIE-LAB | lab(22.91, 23.15, 16.65) |
| CIE-LCH | lch(22.91, 28.52, 35.73°) |
| OKLab | oklab(34.42% 0.0676 0.0398) |
| OKLCH | oklch(34.42% 0.078 30.5) |
| XYZ | xyz(5.2877, 3.7747, 1.7462) |
| Luminance | 0.0377 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Rosewood
#65000B
ΔE00 7.86
Reddy Brown
#6E1005
ΔE00 8.09
Dried Blood
#4B0101
ΔE00 8.17
Mahogany
#4A0100
ΔE00 8.23
Chocolate Brown
#411900
ΔE00 8.27
Wine
#722F37
ΔE00 8.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B271F #1F535B
analogous
#5B1F35 #5B271F #5B451F
triadic
#5B271F #1F5B27 #271F5B
tetradic
#5B271F #355B1F #1F535B #451F5B
square
#5B271F #355B1F #1F535B #451F5B
split-complementary
#5B271F #1F5B45 #1F355B
monochromatic
#170A08 #2D130F #5B271F #893B2F #B64E3E
Accessibility & contrast
On white
11.97
#5B271F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#5B271F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B271F
11.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B271F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B271F | 1.00 | 11.97 | 1.75 | 11.97 |
| #FFFFFF | 11.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#34301E
Deuteranopia (green-blind)
#413B1E
Tritanopia (blue-blind)
#641E25
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #5b271f; /* rgb */ color: rgb(91, 39, 31); /* oklch */ color: oklch(34.4% 0.078 30.5);
Tailwind
colors: {
custom: {
50: '#8d635a',
500: '#5b271f',
950: '#000000',
},
}SCSS
$custom: #5b271f; $custom-light: #8d635a; $custom-dark: #000000;
JSON
{
"hex": "#5b271f",
"rgb": {
"r": 91,
"g": 39,
"b": 31
},
"hsl": {
"h": 8,
"s": 49.18,
"l": 23.922
},
"oklch": {
"l": 0.34425,
"c": 0.07844,
"h": 30.5
},
"luminance": 0.03774
}Semantic roles & 50–950 ramp
primary
#5B271F
secondary
#468690
accent
#C6D94F
background
#F9F5F5
surface
#F1EAE9
border
#CBC6C5
text
#0D0504
muted
#7E7979