#51171F#51171F

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

Color values

HEX#51171F
RGBrgb(81, 23, 31)
HSLhsl(352, 56%, 20%)
HSVhsv(352, 72%, 32%)
CMYKcmyk(0%, 71.6%, 61.7%, 68.2%)
CIE-LABlab(17.74, 27.70, 9.57)
CIE-LCHlch(17.74, 29.31, 19.06°)
OKLaboklab(30.17% 0.0832 0.0237)
OKLCHoklch(30.17% 0.086 15.9)
XYZxyz(3.9474, 2.4616, 1.5633)
Luminance0.0246 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51171F #175149
analogous
#51173C #51171F #512C17
triadic
#51171F #1F5117 #171F51
tetradic
#51171F #3C5117 #175149 #2C1751
square
#51171F #3C5117 #175149 #2C1751
split-complementary
#51171F #17512C #173C51
monochromatic
#180709 #21090D #51171F #812531 #B03243

Accessibility & contrast

On white

14.07
#51171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51171F
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51171F#FFFFFF#000000##FFFFFF
##51171F1.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51171f;
/* rgb */ color: rgb(81, 23, 31);
/* oklch */ color: oklch(30.2% 0.086 15.9);
Tailwind
colors: {
  custom: {
    50: '#86585a',
    500: '#51171f',
    950: '#000000',
  },
}
SCSS
$custom: #51171f;
$custom-light: #86585a;
$custom-dark: #000000;
JSON
{
  "hex": "#51171f",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 351.724,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.30168,
    "c": 0.08647,
    "h": 15.9
  },
  "luminance": 0.02461
}

Semantic roles & 50–950 ramp

primary
#51171F
secondary
#3C887E
accent
#DFCA49
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #51171F

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

Preview Lab → · Contrast checker → · Palette generator →

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