#51171E#51171E

#51171E is a dark, moderate red. Relative luminance 0.025; OKLCH L 30.1% C 0.086 H 17.0°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#51171E
RGBrgb(81, 23, 30)
HSLhsl(353, 56%, 20%)
HSVhsv(353, 72%, 32%)
CMYKcmyk(0%, 71.6%, 63%, 68.2%)
CIE-LABlab(17.72, 27.62, 10.25)
CIE-LCHlch(17.72, 29.46, 20.36°)
OKLaboklab(30.14% 0.0827 0.0253)
OKLCHoklch(30.14% 0.086 17)
XYZxyz(3.9344, 2.4564, 1.4950)
Luminance0.0246 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51171E #17514A
analogous
#51173B #51171E #512D17
triadic
#51171E #1E5117 #171E51
tetradic
#51171E #3B5117 #17514A #2D1751
square
#51171E #3B5117 #17514A #2D1751
split-complementary
#51171E #17512D #173B51
monochromatic
#180709 #21090C #51171E #812530 #B03241

Accessibility & contrast

On white

14.08
#51171E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51171E
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51171E#FFFFFF#000000##FFFFFF
##51171E1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25241E
Deuteranopia (green-blind)
#34301D
Tritanopia (blue-blind)
#590B1A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #51171e;
/* rgb */ color: rgb(81, 23, 30);
/* oklch */ color: oklch(30.1% 0.086 17.0);
Tailwind
colors: {
  custom: {
    50: '#865859',
    500: '#51171e',
    950: '#000000',
  },
}
SCSS
$custom: #51171e;
$custom-light: #865859;
$custom-dark: #000000;
JSON
{
  "hex": "#51171e",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 30
  },
  "hsl": {
    "h": 352.759,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.30142,
    "c": 0.08647,
    "h": 17
  },
  "luminance": 0.02456
}

Semantic roles & 50–950 ramp

primary
#51171E
secondary
#3C887F
accent
#DFCD49
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #51171E

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

Preview Lab → · Contrast checker → · Palette generator →

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