#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
RGBrgb(81, 23, 26)
HSLhsl(357, 56%, 20%)
HSVhsv(357, 72%, 32%)
CMYKcmyk(0%, 71.6%, 67.9%, 68.2%)
CIE-LABlab(17.63, 27.29, 12.95)
CIE-LCHlch(17.63, 30.21, 25.39°)
OKLaboklab(30.05% 0.0808 0.0312)
OKLCHoklch(30.05% 0.087 21.1)
XYZxyz(3.8866, 2.4372, 1.2429)
Luminance0.0244 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

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
##51171A1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.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

Preview Lab

Preview with #51171A

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

Preview Lab → · Contrast checker → · Palette generator →

#51171A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva