#51161C#51161C

#51161C is a dark, moderate red. Relative luminance 0.024; OKLCH L 30.0% C 0.088 H 18.4°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#51161C
RGBrgb(81, 22, 28)
HSLhsl(354, 57%, 20%)
HSVhsv(354, 73%, 32%)
CMYKcmyk(0%, 72.8%, 65.4%, 68.2%)
CIE-LABlab(17.50, 27.94, 11.37)
CIE-LCHlch(17.50, 30.16, 22.14°)
OKLaboklab(29.96% 0.0833 0.0277)
OKLCHoklch(29.96% 0.088 18.4)
XYZxyz(3.8902, 2.4075, 1.3582)
Luminance0.0241 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51161C #16514B
analogous
#51163A #51161C #512D16
triadic
#51161C #1C5116 #161C51
tetradic
#51161C #3A5116 #16514B #2D1651
square
#51161C #3A5116 #16514B #2D1651
split-complementary
#51161C #16512D #163A51
monochromatic
#180708 #21090B #51161C #81232D #B1303D

Accessibility & contrast

On white

14.18
#51161C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#51161C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51161C
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51161C#FFFFFF#000000##FFFFFF
##51161C1.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25231C
Deuteranopia (green-blind)
#34301A
Tritanopia (blue-blind)
#590919
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #51161c;
/* rgb */ color: rgb(81, 22, 28);
/* oklch */ color: oklch(30.0% 0.088 18.4);
Tailwind
colors: {
  custom: {
    50: '#865757',
    500: '#51161c',
    950: '#000000',
  },
}
SCSS
$custom: #51161c;
$custom-light: #865757;
$custom-dark: #000000;
JSON
{
  "hex": "#51161c",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 28
  },
  "hsl": {
    "h": 353.898,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29959,
    "c": 0.0878,
    "h": 18.4
  },
  "luminance": 0.02407
}

Semantic roles & 50–950 ramp

primary
#51161C
secondary
#3A8881
accent
#E1D147
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #51161C

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

Preview Lab → · Contrast checker → · Palette generator →

#51161C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva