#51170E#51170E

#51170E is a dark, moderate red. Relative luminance 0.024; OKLCH L 29.8% C 0.089 H 31.5°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#51170E
RGBrgb(81, 23, 14)
HSLhsl(8, 71%, 19%)
HSVhsv(8, 83%, 32%)
CMYKcmyk(0%, 71.6%, 82.7%, 68.2%)
CIE-LABlab(17.43, 26.55, 20.35)
CIE-LCHlch(17.43, 33.45, 37.48°)
OKLaboklab(29.84% 0.0757 0.0463)
OKLCHoklch(29.84% 0.089 31.5)
XYZxyz(3.7794, 2.3944, 0.6785)
Luminance0.0239 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51170E #0E4851
analogous
#510E26 #51170E #51380E
triadic
#51170E #0E5117 #170E51
tetradic
#51170E #26510E #0E4851 #380E51
square
#51170E #26510E #0E4851 #380E51
split-complementary
#51170E #0E5138 #0E2651
monochromatic
#1A0705 #1D0805 #51170E #852617 #B93520

Accessibility & contrast

On white

14.20
#51170E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#51170E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51170E
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51170E#FFFFFF#000000##FFFFFF
##51170E1.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27230D
Deuteranopia (green-blind)
#36300C
Tritanopia (blue-blind)
#5A0715
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #51170e;
/* rgb */ color: rgb(81, 23, 14);
/* oklch */ color: oklch(29.8% 0.089 31.5);
Tailwind
colors: {
  custom: {
    50: '#88574d',
    500: '#51170e',
    950: '#000000',
  },
}
SCSS
$custom: #51170e;
$custom-light: #88574d;
$custom-dark: #000000;
JSON
{
  "hex": "#51170e",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 14
  },
  "hsl": {
    "h": 8.06,
    "s": 70.526,
    "l": 18.627
  },
  "oklch": {
    "l": 0.29836,
    "c": 0.08877,
    "h": 31.5
  },
  "luminance": 0.02394
}

Semantic roles & 50–950 ramp

primary
#51170E
secondary
#2F7F8C
accent
#D5ED3A
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0301
muted
#7D7877

Preview Lab

Preview with #51170E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#51170E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva