#5A161A#5A161A

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

Color values

HEX#5A161A
RGBrgb(90, 22, 26)
HSLhsl(356, 61%, 22%)
HSVhsv(356, 76%, 35%)
CMYKcmyk(0%, 75.6%, 71.1%, 64.7%)
CIE-LABlab(19.32, 31.16, 15.48)
CIE-LCHlch(19.32, 34.79, 26.42°)
OKLaboklab(31.65% 0.0918 0.0366)
OKLCHoklch(31.65% 0.099 21.7)
XYZxyz(4.6903, 2.8227, 1.2750)
Luminance0.0282 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A161A #165A56
analogous
#5A163C #5A161A #5A3416
triadic
#5A161A #1A5A16 #161A5A
tetradic
#5A161A #3C5A16 #165A56 #34165A
square
#5A161A #3C5A16 #165A56 #34165A
split-complementary
#5A161A #165A34 #163C5A
monochromatic
#190607 #290A0C #5A161A #8B2228 #BC2E36

Accessibility & contrast

On white

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

On black

1.56
#5A161A on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5A161A#FFFFFF#000000##FFFFFF
##5A161A1.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29261A
Deuteranopia (green-blind)
#3A3418
Tritanopia (blue-blind)
#630318
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a161a;
/* rgb */ color: rgb(90, 22, 26);
/* oklch */ color: oklch(31.7% 0.099 21.7);
Tailwind
colors: {
  custom: {
    50: '#8e5956',
    500: '#5a161a',
    950: '#000000',
  },
}
SCSS
$custom: #5a161a;
$custom-light: #8e5956;
$custom-dark: #000000;
JSON
{
  "hex": "#5a161a",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 26
  },
  "hsl": {
    "h": 356.471,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31654,
    "c": 0.09886,
    "h": 21.7
  },
  "luminance": 0.02822
}

Semantic roles & 50–950 ramp

primary
#5A161A
secondary
#3B918C
accent
#E4DA44
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5A161A

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

Preview Lab → · Contrast checker → · Palette generator →

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