#51171C#51171C
#51171C is a dark, moderate red. Relative luminance 0.024; OKLCH L 30.1% C 0.087 H 19.1°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).
Color values
| HEX | #51171C |
|---|---|
| RGB | rgb(81, 23, 28) |
| HSL | hsl(355, 56%, 20%) |
| HSV | hsv(355, 72%, 32%) |
| CMYK | cmyk(0%, 71.6%, 65.4%, 68.2%) |
| CIE-LAB | lab(17.67, 27.45, 11.60) |
| CIE-LCH | lch(17.67, 29.80, 22.91°) |
| OKLab | oklab(30.09% 0.0818 0.0283) |
| OKLCH | oklch(30.09% 0.087 19.1) |
| XYZ | xyz(3.9097, 2.4465, 1.3647) |
| Luminance | 0.0245 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Deep Brown
#410200
ΔE00 5.55
Dried Blood
#4B0101
ΔE00 5.65
Mahogany
#4A0100
ΔE00 5.74
Dark Maroon
#3C0008
ΔE00 5.83
Maroon (survey)
#650021
ΔE00 6.18
Claret
#680018
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51171C #17514C
analogous
#511739 #51171C #512F17
triadic
#51171C #1C5117 #171C51
tetradic
#51171C #395117 #17514C #2F1751
square
#51171C #395117 #17514C #2F1751
split-complementary
#51171C #17512F #173951
monochromatic
#180708 #21090C #51171C #81252C #B0323D
Accessibility & contrast
On white
14.10
#51171C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#51171C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51171C
14.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51171C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51171C | 1.00 | 14.10 | 1.49 | 14.10 |
| #FFFFFF | 14.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#26241C
Deuteranopia (green-blind)
#34301B
Tritanopia (blue-blind)
#590B19
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #51171c; /* rgb */ color: rgb(81, 23, 28); /* oklch */ color: oklch(30.1% 0.087 19.1);
Tailwind
colors: {
custom: {
50: '#865857',
500: '#51171c',
950: '#000000',
},
}SCSS
$custom: #51171c; $custom-light: #865857; $custom-dark: #000000;
JSON
{
"hex": "#51171c",
"rgb": {
"r": 81,
"g": 23,
"b": 28
},
"hsl": {
"h": 354.828,
"s": 55.769,
"l": 20.392
},
"oklch": {
"l": 0.30094,
"c": 0.08651,
"h": 19.1
},
"luminance": 0.02446
}Semantic roles & 50–950 ramp
primary
#51171C
secondary
#3C8882
accent
#DFD249
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878