#5A161B#5A161B

#5A161B is a dark, moderate red. Relative luminance 0.028; OKLCH L 31.7% C 0.099 H 20.9°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#5A161B
RGBrgb(90, 22, 27)
HSLhsl(356, 61%, 22%)
HSVhsv(356, 76%, 35%)
CMYKcmyk(0%, 75.6%, 70%, 64.7%)
CIE-LABlab(19.34, 31.22, 14.81)
CIE-LCHlch(19.34, 34.56, 25.38°)
OKLaboklab(31.67% 0.0923 0.0352)
OKLCHoklch(31.67% 0.099 20.9)
XYZxyz(4.7017, 2.8273, 1.3348)
Luminance0.0283 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A161B #165A55
analogous
#5A163D #5A161B #5A3316
triadic
#5A161B #1B5A16 #161B5A
tetradic
#5A161B #3D5A16 #165A55 #33165A
square
#5A161B #3D5A16 #165A55 #33165A
split-complementary
#5A161B #165A33 #163D5A
monochromatic
#190607 #290A0C #5A161B #8B222A #BC2E39

Accessibility & contrast

On white

13.42
#5A161B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#5A161B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A161B
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A161B#FFFFFF#000000##FFFFFF
##5A161B1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a161b;
/* rgb */ color: rgb(90, 22, 27);
/* oklch */ color: oklch(31.7% 0.099 20.9);
Tailwind
colors: {
  custom: {
    50: '#8e5957',
    500: '#5a161b',
    950: '#000000',
  },
}
SCSS
$custom: #5a161b;
$custom-light: #8e5957;
$custom-dark: #000000;
JSON
{
  "hex": "#5a161b",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 27
  },
  "hsl": {
    "h": 355.588,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31674,
    "c": 0.09877,
    "h": 20.9
  },
  "luminance": 0.02827
}

Semantic roles & 50–950 ramp

primary
#5A161B
secondary
#3B918B
accent
#E4D844
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5A161B

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

Preview Lab → · Contrast checker → · Palette generator →

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