#51170C#51170C

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

Color values

HEX#51170C
RGBrgb(81, 23, 12)
HSLhsl(10, 74%, 18%)
HSVhsv(10, 85%, 32%)
CMYKcmyk(0%, 71.6%, 85.2%, 68.2%)
CIE-LABlab(17.41, 26.46, 21.28)
CIE-LCHlch(17.41, 33.96, 38.81°)
OKLaboklab(29.81% 0.075 0.0484)
OKLCHoklch(29.81% 0.089 32.8)
XYZxyz(3.7665, 2.3892, 0.6106)
Luminance0.0239 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51170C #0C4651
analogous
#510C23 #51170C #51390C
triadic
#51170C #0C5117 #170C51
tetradic
#51170C #23510C #0C4651 #390C51
square
#51170C #23510C #0C4651 #390C51
split-complementary
#51170C #0C5139 #0C2351
monochromatic
#1B0804 #1C0804 #51170C #862614 #BC351C

Accessibility & contrast

On white

14.21
#51170C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51170C
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51170C#FFFFFF#000000##FFFFFF
##51170C1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28230A
Deuteranopia (green-blind)
#362F0A
Tritanopia (blue-blind)
#5A0715
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #51170c;
/* rgb */ color: rgb(81, 23, 12);
/* oklch */ color: oklch(29.8% 0.089 32.8);
Tailwind
colors: {
  custom: {
    50: '#88574c',
    500: '#51170c',
    950: '#000000',
  },
}
SCSS
$custom: #51170c;
$custom-light: #88574c;
$custom-dark: #000000;
JSON
{
  "hex": "#51170c",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 12
  },
  "hsl": {
    "h": 9.565,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.2981,
    "c": 0.08924,
    "h": 32.8
  },
  "luminance": 0.02389
}

Semantic roles & 50–950 ramp

primary
#51170C
secondary
#2C7D8C
accent
#D3F137
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0301
muted
#7D7877

Preview Lab

Preview with #51170C

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

Preview Lab → · Contrast checker → · Palette generator →

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