#5B161B#5B161B

#5B161B is a dark, moderate red. Relative luminance 0.029; OKLCH L 31.9% C 0.100 H 21.0°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#5B161B
RGBrgb(91, 22, 27)
HSLhsl(356, 61%, 22%)
HSVhsv(356, 76%, 36%)
CMYKcmyk(0%, 75.8%, 70.3%, 64.3%)
CIE-LABlab(19.55, 31.59, 15.12)
CIE-LCHlch(19.55, 35.02, 25.58°)
OKLaboklab(31.87% 0.0933 0.0359)
OKLCHoklch(31.87% 0.1 21)
XYZxyz(4.7996, 2.8778, 1.3394)
Luminance0.0288 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B161B #165B56
analogous
#5B163E #5B161B #5B3416
triadic
#5B161B #1B5B16 #161B5B
tetradic
#5B161B #3E5B16 #165B56 #34165B
square
#5B161B #3E5B16 #165B56 #34165B
split-complementary
#5B161B #165B34 #163E5B
monochromatic
#190607 #2A0A0C #5B161B #8C222A #BE2E38

Accessibility & contrast

On white

13.33
#5B161B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#5B161B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B161B
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B161B#FFFFFF#000000##FFFFFF
##5B161B1.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29261B
Deuteranopia (green-blind)
#3A3519
Tritanopia (blue-blind)
#640318
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5b161b;
/* rgb */ color: rgb(91, 22, 27);
/* oklch */ color: oklch(31.9% 0.100 21.0);
Tailwind
colors: {
  custom: {
    50: '#8f5957',
    500: '#5b161b',
    950: '#000000',
  },
}
SCSS
$custom: #5b161b;
$custom-light: #8f5957;
$custom-dark: #000000;
JSON
{
  "hex": "#5b161b",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 27
  },
  "hsl": {
    "h": 355.652,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31869,
    "c": 0.09995,
    "h": 21
  },
  "luminance": 0.02877
}

Semantic roles & 50–950 ramp

primary
#5B161B
secondary
#3B928C
accent
#E4D944
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5B161B

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

Preview Lab → · Contrast checker → · Palette generator →

#5B161B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva