#5A161F#5A161F

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

Color values

HEX#5A161F
RGBrgb(90, 22, 31)
HSLhsl(352, 61%, 22%)
HSVhsv(352, 76%, 35%)
CMYKcmyk(0%, 75.6%, 65.6%, 64.7%)
CIE-LABlab(19.42, 31.51, 12.13)
CIE-LCHlch(19.42, 33.76, 21.05°)
OKLaboklab(31.76% 0.0941 0.0295)
OKLCHoklch(31.76% 0.099 17.4)
XYZxyz(4.7512, 2.8471, 1.5954)
Luminance0.0285 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A161F #165A51
analogous
#5A1641 #5A161F #5A2F16
triadic
#5A161F #1F5A16 #161F5A
tetradic
#5A161F #415A16 #165A51 #2F165A
square
#5A161F #415A16 #165A51 #2F165A
split-complementary
#5A161F #165A2F #16415A
monochromatic
#190608 #290A0E #5A161F #8B2230 #BC2E41

Accessibility & contrast

On white

13.38
#5A161F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A161F
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A161F#FFFFFF#000000##FFFFFF
##5A161F1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28261F
Deuteranopia (green-blind)
#39341D
Tritanopia (blue-blind)
#63051A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a161f;
/* rgb */ color: rgb(90, 22, 31);
/* oklch */ color: oklch(31.8% 0.099 17.4);
Tailwind
colors: {
  custom: {
    50: '#8e595a',
    500: '#5a161f',
    950: '#000000',
  },
}
SCSS
$custom: #5a161f;
$custom-light: #8e595a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a161f",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 31
  },
  "hsl": {
    "h": 352.059,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31762,
    "c": 0.09859,
    "h": 17.4
  },
  "luminance": 0.02846
}

Semantic roles & 50–950 ramp

primary
#5A161F
secondary
#3B9186
accent
#E4CF44
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5A161F

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

Preview Lab → · Contrast checker → · Palette generator →

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