#51170D#51170D

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

Color values

HEX#51170D
RGBrgb(81, 23, 13)
HSLhsl(9, 72%, 18%)
HSVhsv(9, 84%, 32%)
CMYKcmyk(0%, 71.6%, 84%, 68.2%)
CIE-LABlab(17.42, 26.50, 20.83)
CIE-LCHlch(17.42, 33.71, 38.17°)
OKLaboklab(29.82% 0.0754 0.0474)
OKLCHoklch(29.82% 0.089 32.2)
XYZxyz(3.7728, 2.3917, 0.6437)
Luminance0.0239 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51170D #0D4751
analogous
#510D25 #51170D #51390D
triadic
#51170D #0D5117 #170D51
tetradic
#51170D #25510D #0D4751 #390D51
square
#51170D #25510D #0D4751 #390D51
split-complementary
#51170D #0D5139 #0D2551
monochromatic
#1A0704 #1C0805 #51170D #862615 #BA351E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51170D#FFFFFF#000000##FFFFFF
##51170D1.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)
#27230B
Deuteranopia (green-blind)
#36300B
Tritanopia (blue-blind)
#5A0715
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #51170d;
/* rgb */ color: rgb(81, 23, 13);
/* oklch */ color: oklch(29.8% 0.089 32.2);
Tailwind
colors: {
  custom: {
    50: '#88574d',
    500: '#51170d',
    950: '#000000',
  },
}
SCSS
$custom: #51170d;
$custom-light: #88574d;
$custom-dark: #000000;
JSON
{
  "hex": "#51170d",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 13
  },
  "hsl": {
    "h": 8.824,
    "s": 72.34,
    "l": 18.431
  },
  "oklch": {
    "l": 0.29822,
    "c": 0.089,
    "h": 32.2
  },
  "luminance": 0.02391
}

Semantic roles & 50–950 ramp

primary
#51170D
secondary
#2E7E8C
accent
#D4EF39
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0301
muted
#7D7877

Preview Lab

Preview with #51170D

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

Preview Lab → · Contrast checker → · Palette generator →

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