#51171B#51171B

#51171B is a dark, moderate red. Relative luminance 0.024; OKLCH L 30.1% C 0.087 H 20.1°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#51171B
RGBrgb(81, 23, 27)
HSLhsl(356, 56%, 20%)
HSVhsv(356, 72%, 32%)
CMYKcmyk(0%, 71.6%, 66.7%, 68.2%)
CIE-LABlab(17.65, 27.37, 12.28)
CIE-LCHlch(17.65, 30.00, 24.16°)
OKLaboklab(30.07% 0.0813 0.0298)
OKLCHoklch(30.07% 0.087 20.1)
XYZxyz(3.8979, 2.4418, 1.3028)
Luminance0.0244 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51171B #17514D
analogous
#511738 #51171B #513017
triadic
#51171B #1B5117 #171B51
tetradic
#51171B #385117 #17514D #301751
square
#51171B #385117 #17514D #301751
split-complementary
#51171B #175130 #173851
monochromatic
#180708 #21090B #51171B #81252B #B0323B

Accessibility & contrast

On white

14.11
#51171B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#51171B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51171B
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51171B#FFFFFF#000000##FFFFFF
##51171B1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26241B
Deuteranopia (green-blind)
#353019
Tritanopia (blue-blind)
#590A19
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #51171b;
/* rgb */ color: rgb(81, 23, 27);
/* oklch */ color: oklch(30.1% 0.087 20.1);
Tailwind
colors: {
  custom: {
    50: '#865857',
    500: '#51171b',
    950: '#000000',
  },
}
SCSS
$custom: #51171b;
$custom-light: #865857;
$custom-dark: #000000;
JSON
{
  "hex": "#51171b",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 27
  },
  "hsl": {
    "h": 355.862,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.3007,
    "c": 0.08657,
    "h": 20.1
  },
  "luminance": 0.02441
}

Semantic roles & 50–950 ramp

primary
#51171B
secondary
#3C8883
accent
#DFD549
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #51171B

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

Preview Lab → · Contrast checker → · Palette generator →

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