#5A1F0F#5A1F0F
#5A1F0F is a dark, moderate red. Relative luminance 0.032; OKLCH L 32.7% C 0.091 H 35.9°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).
Color values
| HEX | #5A1F0F |
|---|---|
| RGB | rgb(90, 31, 15) |
| HSL | hsl(13, 71%, 21%) |
| HSV | hsv(13, 83%, 35%) |
| CMYK | cmyk(0%, 65.6%, 83.3%, 64.7%) |
| CIE-LAB | lab(20.78, 26.17, 24.18) |
| CIE-LCH | lch(20.78, 35.63, 42.73°) |
| OKLab | oklab(32.7% 0.0737 0.0534) |
| OKLCH | oklch(32.7% 0.091 35.9) |
| XYZ | xyz(4.7932, 3.1888, 0.8149) |
| Luminance | 0.0319 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Reddy Brown
#6E1005
ΔE00 5.62
Chocolate Brown
#411900
ΔE00 6.34
Rosewood
#65000B
ΔE00 7.13
Dried Blood
#4B0101
ΔE00 7.70
Mahogany
#4A0100
ΔE00 7.72
Chestnut
#742802
ΔE00 7.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A1F0F #0F4A5A
analogous
#5A0F24 #5A1F0F #5A440F
triadic
#5A1F0F #0F5A1F #1F0F5A
tetradic
#5A1F0F #245A0F #0F4A5A #440F5A
square
#5A1F0F #245A0F #0F4A5A #440F5A
split-complementary
#5A1F0F #0F5A44 #0F245A
monochromatic
#1A0904 #260D06 #5A1F0F #8E3118 #C34320
Accessibility & contrast
On white
12.82
#5A1F0F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#5A1F0F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A1F0F
12.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A1F0F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A1F0F | 1.00 | 12.82 | 1.64 | 12.82 |
| #FFFFFF | 12.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#302A0D
Deuteranopia (green-blind)
#3E370D
Tritanopia (blue-blind)
#64111C
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #5a1f0f; /* rgb */ color: rgb(90, 31, 15); /* oklch */ color: oklch(32.7% 0.091 35.9);
Tailwind
colors: {
custom: {
50: '#8f5d4e',
500: '#5a1f0f',
950: '#000000',
},
}SCSS
$custom: #5a1f0f; $custom-light: #8f5d4e; $custom-dark: #000000;
JSON
{
"hex": "#5a1f0f",
"rgb": {
"r": 90,
"g": 31,
"b": 15
},
"hsl": {
"h": 12.8,
"s": 71.429,
"l": 20.588
},
"oklch": {
"l": 0.32703,
"c": 0.09102,
"h": 35.9
},
"luminance": 0.03188
}Semantic roles & 50–950 ramp
primary
#5A1F0F
secondary
#317F94
accent
#C8EE3A
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0D0401
muted
#7E7977