#51171A#51171A
#51171A is a dark, moderate red. Relative luminance 0.024; OKLCH L 30.0% C 0.087 H 21.1°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).
Color values
| HEX | #51171A |
|---|---|
| RGB | rgb(81, 23, 26) |
| HSL | hsl(357, 56%, 20%) |
| HSV | hsv(357, 72%, 32%) |
| CMYK | cmyk(0%, 71.6%, 67.9%, 68.2%) |
| CIE-LAB | lab(17.63, 27.29, 12.95) |
| CIE-LCH | lch(17.63, 30.21, 25.39°) |
| OKLab | oklab(30.05% 0.0808 0.0312) |
| OKLCH | oklch(30.05% 0.087 21.1) |
| XYZ | xyz(3.8866, 2.4372, 1.2429) |
| Luminance | 0.0244 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Dried Blood
#4B0101
ΔE00 5.02
Mahogany
#4A0100
ΔE00 5.11
Deep Brown
#410200
ΔE00 5.14
Dark Maroon
#3C0008
ΔE00 6.03
Claret
#680018
ΔE00 6.13
Maroon (survey)
#650021
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51171A #17514E
analogous
#511737 #51171A #513117
triadic
#51171A #1A5117 #171A51
tetradic
#51171A #375117 #17514E #311751
square
#51171A #375117 #17514E #311751
split-complementary
#51171A #175131 #173751
monochromatic
#180708 #21090B #51171A #812529 #B03239
Accessibility & contrast
On white
14.12
#51171A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#51171A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51171A
14.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51171A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51171A | 1.00 | 14.12 | 1.49 | 14.12 |
| #FFFFFF | 14.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#26231A
Deuteranopia (green-blind)
#353018
Tritanopia (blue-blind)
#590A19
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #51171a; /* rgb */ color: rgb(81, 23, 26); /* oklch */ color: oklch(30.0% 0.087 21.1);
Tailwind
colors: {
custom: {
50: '#875856',
500: '#51171a',
950: '#000000',
},
}SCSS
$custom: #51171a; $custom-light: #875856; $custom-dark: #000000;
JSON
{
"hex": "#51171a",
"rgb": {
"r": 81,
"g": 23,
"b": 26
},
"hsl": {
"h": 356.897,
"s": 55.769,
"l": 20.392
},
"oklch": {
"l": 0.30048,
"c": 0.08665,
"h": 21.1
},
"luminance": 0.02437
}Semantic roles & 50–950 ramp
primary
#51171A
secondary
#3C8884
accent
#DFD749
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878