#51161B#51161B

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

Color values

HEX#51161B
RGBrgb(81, 22, 27)
HSLhsl(355, 57%, 20%)
HSVhsv(355, 73%, 32%)
CMYKcmyk(0%, 72.8%, 66.7%, 68.2%)
CIE-LABlab(17.47, 27.86, 12.04)
CIE-LCHlch(17.47, 30.35, 23.38°)
OKLaboklab(29.94% 0.0828 0.0292)
OKLCHoklch(29.94% 0.088 19.4)
XYZxyz(3.8785, 2.4028, 1.2963)
Luminance0.0240 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51161B #16514C
analogous
#511639 #51161B #512E16
triadic
#51161B #1B5116 #161B51
tetradic
#51161B #395116 #16514C #2E1651
square
#51161B #395116 #16514C #2E1651
split-complementary
#51161B #16512E #163951
monochromatic
#180708 #21090B #51161B #81232B #B1303B

Accessibility & contrast

On white

14.19
#51161B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51161B
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51161B#FFFFFF#000000##FFFFFF
##51161B1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25231B
Deuteranopia (green-blind)
#342F19
Tritanopia (blue-blind)
#590918
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #51161b;
/* rgb */ color: rgb(81, 22, 27);
/* oklch */ color: oklch(29.9% 0.088 19.4);
Tailwind
colors: {
  custom: {
    50: '#875757',
    500: '#51161b',
    950: '#000000',
  },
}
SCSS
$custom: #51161b;
$custom-light: #875757;
$custom-dark: #000000;
JSON
{
  "hex": "#51161b",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 27
  },
  "hsl": {
    "h": 354.915,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29936,
    "c": 0.08785,
    "h": 19.4
  },
  "luminance": 0.02402
}

Semantic roles & 50–950 ramp

primary
#51161B
secondary
#3A8882
accent
#E1D447
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #51161B

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

Preview Lab → · Contrast checker → · Palette generator →

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