#5A161E#5A161E

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

Color values

HEX#5A161E
RGBrgb(90, 22, 30)
HSLhsl(353, 61%, 22%)
HSVhsv(353, 76%, 35%)
CMYKcmyk(0%, 75.6%, 66.7%, 64.7%)
CIE-LABlab(19.40, 31.44, 12.80)
CIE-LCHlch(19.40, 33.94, 22.16°)
OKLaboklab(31.74% 0.0936 0.031)
OKLCHoklch(31.74% 0.099 18.3)
XYZxyz(4.7382, 2.8419, 1.5271)
Luminance0.0284 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A161E #165A52
analogous
#5A1640 #5A161E #5A3016
triadic
#5A161E #1E5A16 #161E5A
tetradic
#5A161E #405A16 #165A52 #30165A
square
#5A161E #405A16 #165A52 #30165A
split-complementary
#5A161E #165A30 #16405A
monochromatic
#190608 #290A0E #5A161E #8B222E #BC2E3F

Accessibility & contrast

On white

13.39
#5A161E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A161E
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A161E#FFFFFF#000000##FFFFFF
##5A161E1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28261E
Deuteranopia (green-blind)
#39341C
Tritanopia (blue-blind)
#630519
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a161e;
/* rgb */ color: rgb(90, 22, 30);
/* oklch */ color: oklch(31.7% 0.099 18.3);
Tailwind
colors: {
  custom: {
    50: '#8e5959',
    500: '#5a161e',
    950: '#000000',
  },
}
SCSS
$custom: #5a161e;
$custom-light: #8e5959;
$custom-dark: #000000;
JSON
{
  "hex": "#5a161e",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 30
  },
  "hsl": {
    "h": 352.941,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31739,
    "c": 0.09861,
    "h": 18.3
  },
  "luminance": 0.02841
}

Semantic roles & 50–950 ramp

primary
#5A161E
secondary
#3B9187
accent
#E4D144
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5A161E

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

Preview Lab → · Contrast checker → · Palette generator →

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