#5A161C#5A161C

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

Color values

HEX#5A161C
RGBrgb(90, 22, 28)
HSLhsl(355, 61%, 22%)
HSVhsv(355, 76%, 35%)
CMYKcmyk(0%, 75.6%, 68.9%, 64.7%)
CIE-LABlab(19.36, 31.29, 14.14)
CIE-LCHlch(19.36, 34.34, 24.32°)
OKLaboklab(31.7% 0.0927 0.0338)
OKLCHoklch(31.7% 0.099 20)
XYZxyz(4.7134, 2.8320, 1.3968)
Luminance0.0283 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A161C #165A54
analogous
#5A163E #5A161C #5A3216
triadic
#5A161C #1C5A16 #161C5A
tetradic
#5A161C #3E5A16 #165A54 #32165A
square
#5A161C #3E5A16 #165A54 #32165A
split-complementary
#5A161C #165A32 #163E5A
monochromatic
#190608 #290A0D #5A161C #8B222B #BC2E3B

Accessibility & contrast

On white

13.41
#5A161C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A161C
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A161C#FFFFFF#000000##FFFFFF
##5A161C1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28261C
Deuteranopia (green-blind)
#3A341A
Tritanopia (blue-blind)
#630419
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a161c;
/* rgb */ color: rgb(90, 22, 28);
/* oklch */ color: oklch(31.7% 0.099 20.0);
Tailwind
colors: {
  custom: {
    50: '#8e5957',
    500: '#5a161c',
    950: '#000000',
  },
}
SCSS
$custom: #5a161c;
$custom-light: #8e5957;
$custom-dark: #000000;
JSON
{
  "hex": "#5a161c",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 28
  },
  "hsl": {
    "h": 354.706,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31695,
    "c": 0.0987,
    "h": 20
  },
  "luminance": 0.02831
}

Semantic roles & 50–950 ramp

primary
#5A161C
secondary
#3B918A
accent
#E4D644
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5A161C

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

Preview Lab → · Contrast checker → · Palette generator →

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