#5A171D#5A171D

#5A171D is a dark, moderate red. Relative luminance 0.029; OKLCH L 31.8% C 0.097 H 19.7°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#5A171D
RGBrgb(90, 23, 29)
HSLhsl(355, 59%, 22%)
HSVhsv(355, 74%, 35%)
CMYKcmyk(0%, 74.4%, 67.8%, 64.7%)
CIE-LABlab(19.54, 30.92, 13.68)
CIE-LCHlch(19.54, 33.81, 23.87°)
OKLaboklab(31.84% 0.0918 0.0329)
OKLCHoklch(31.84% 0.097 19.7)
XYZxyz(4.7451, 2.8758, 1.4674)
Luminance0.0288 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A171D #175A54
analogous
#5A173F #5A171D #5A3317
triadic
#5A171D #1D5A17 #171D5A
tetradic
#5A171D #3F5A17 #175A54 #33175A
square
#5A171D #3F5A17 #175A54 #33175A
split-complementary
#5A171D #175A33 #173F5A
monochromatic
#180608 #290B0D #5A171D #8B232D #BB303C

Accessibility & contrast

On white

13.33
#5A171D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#5A171D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A171D
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A171D#FFFFFF#000000##FFFFFF
##5A171D1.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29261D
Deuteranopia (green-blind)
#3A351B
Tritanopia (blue-blind)
#63061A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a171d;
/* rgb */ color: rgb(90, 23, 29);
/* oklch */ color: oklch(31.8% 0.097 19.7);
Tailwind
colors: {
  custom: {
    50: '#8e5958',
    500: '#5a171d',
    950: '#000000',
  },
}
SCSS
$custom: #5a171d;
$custom-light: #8e5958;
$custom-dark: #000000;
JSON
{
  "hex": "#5a171d",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 29
  },
  "hsl": {
    "h": 354.627,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31837,
    "c": 0.09747,
    "h": 19.7
  },
  "luminance": 0.02875
}

Semantic roles & 50–950 ramp

primary
#5A171D
secondary
#3C9189
accent
#E2D445
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5A171D

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

Preview Lab → · Contrast checker → · Palette generator →

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