#5B171D#5B171D

#5B171D is a dark, moderate red. Relative luminance 0.029; OKLCH L 32.0% C 0.099 H 19.9°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#5B171D
RGBrgb(91, 23, 29)
HSLhsl(355, 60%, 22%)
HSVhsv(355, 75%, 36%)
CMYKcmyk(0%, 74.7%, 68.1%, 64.3%)
CIE-LABlab(19.75, 31.29, 13.99)
CIE-LCHlch(19.75, 34.27, 24.09°)
OKLaboklab(32.03% 0.0928 0.0336)
OKLCHoklch(32.03% 0.099 19.9)
XYZxyz(4.8430, 2.9263, 1.4720)
Luminance0.0293 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B171D #175B55
analogous
#5B173F #5B171D #5B3317
triadic
#5B171D #1D5B17 #171D5B
tetradic
#5B171D #3F5B17 #175B55 #33175B
square
#5B171D #3F5B17 #175B55 #33175B
split-complementary
#5B171D #175B33 #173F5B
monochromatic
#180608 #2A0B0D #5B171D #8C232D #BD303C

Accessibility & contrast

On white

13.25
#5B171D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#5B171D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B171D
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B171D#FFFFFF#000000##FFFFFF
##5B171D1.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29271D
Deuteranopia (green-blind)
#3A351B
Tritanopia (blue-blind)
#64051A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5b171d;
/* rgb */ color: rgb(91, 23, 29);
/* oklch */ color: oklch(32.0% 0.099 19.9);
Tailwind
colors: {
  custom: {
    50: '#8f5958',
    500: '#5b171d',
    950: '#000000',
  },
}
SCSS
$custom: #5b171d;
$custom-light: #8f5958;
$custom-dark: #000000;
JSON
{
  "hex": "#5b171d",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 29
  },
  "hsl": {
    "h": 354.706,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.3203,
    "c": 0.09867,
    "h": 19.9
  },
  "luminance": 0.02926
}

Semantic roles & 50–950 ramp

primary
#5B171D
secondary
#3C928A
accent
#E3D545
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5B171D

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

Preview Lab → · Contrast checker → · Palette generator →

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