#5A170F#5A170F
#5A170F is a dark, moderate red. Relative luminance 0.028; OKLCH L 31.6% C 0.099 H 30.2°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).
Color values
| HEX | #5A170F |
|---|---|
| RGB | rgb(90, 23, 15) |
| HSL | hsl(6, 71%, 21%) |
| HSV | hsv(6, 83%, 35%) |
| CMYK | cmyk(0%, 74.4%, 83.3%, 64.7%) |
| CIE-LAB | lab(19.31, 30.12, 22.52) |
| CIE-LCH | lch(19.31, 37.61, 36.78°) |
| OKLab | oklab(31.6% 0.086 0.0501) |
| OKLCH | oklch(31.6% 0.099 30.2) |
| XYZ | xyz(4.6096, 2.8216, 0.7538) |
| Luminance | 0.0282 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Rosewood
#65000B
ΔE00 4.43
Reddy Brown
#6E1005
ΔE00 5.06
Dried Blood
#4B0101
ΔE00 5.15
Mahogany
#4A0100
ΔE00 5.23
Blood
#770001
ΔE00 6.95
Claret
#680018
ΔE00 6.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A170F #0F525A
analogous
#5A0F2C #5A170F #5A3C0F
triadic
#5A170F #0F5A17 #170F5A
tetradic
#5A170F #2C5A0F #0F525A #3C0F5A
square
#5A170F #2C5A0F #0F525A #3C0F5A
split-complementary
#5A170F #0F5A3C #0F2C5A
monochromatic
#1A0704 #260A06 #5A170F #8E2418 #C33220
Accessibility & contrast
On white
13.43
#5A170F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#5A170F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A170F
13.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A170F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A170F | 1.00 | 13.43 | 1.56 | 13.43 |
| #FFFFFF | 13.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2A250E
Deuteranopia (green-blind)
#3B340C
Tritanopia (blue-blind)
#640216
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #5a170f; /* rgb */ color: rgb(90, 23, 15); /* oklch */ color: oklch(31.6% 0.099 30.2);
Tailwind
colors: {
custom: {
50: '#8f594e',
500: '#5a170f',
950: '#000000',
},
}SCSS
$custom: #5a170f; $custom-light: #8f594e; $custom-dark: #000000;
JSON
{
"hex": "#5a170f",
"rgb": {
"r": 90,
"g": 23,
"b": 15
},
"hsl": {
"h": 6.4,
"s": 71.429,
"l": 20.588
},
"oklch": {
"l": 0.31597,
"c": 0.09949,
"h": 30.2
},
"luminance": 0.02821
}Semantic roles & 50–950 ramp
primary
#5A170F
secondary
#318994
accent
#DBEE3A
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0401
muted
#7E7977