#5B171C#5B171C

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

Color values

HEX#5B171C
RGBrgb(91, 23, 28)
HSLhsl(356, 60%, 22%)
HSVhsv(356, 75%, 36%)
CMYKcmyk(0%, 74.7%, 69.2%, 64.3%)
CIE-LABlab(19.73, 31.22, 14.66)
CIE-LCHlch(19.73, 34.49, 25.15°)
OKLaboklab(32.01% 0.0923 0.035)
OKLCHoklch(32.01% 0.099 20.7)
XYZxyz(4.8309, 2.9215, 1.4079)
Luminance0.0292 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B171C #175B56
analogous
#5B173E #5B171C #5B3417
triadic
#5B171C #1C5B17 #171C5B
tetradic
#5B171C #3E5B17 #175B56 #34175B
square
#5B171C #3E5B17 #175B56 #34175B
split-complementary
#5B171C #175B34 #173E5B
monochromatic
#180608 #2A0B0D #5B171C #8C232B #BD303A

Accessibility & contrast

On white

13.26
#5B171C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B171C
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B171C#FFFFFF#000000##FFFFFF
##5B171C1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29271C
Deuteranopia (green-blind)
#3B351A
Tritanopia (blue-blind)
#640519
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5b171c;
/* rgb */ color: rgb(91, 23, 28);
/* oklch */ color: oklch(32.0% 0.099 20.7);
Tailwind
colors: {
  custom: {
    50: '#8f5958',
    500: '#5b171c',
    950: '#000000',
  },
}
SCSS
$custom: #5b171c;
$custom-light: #8f5958;
$custom-dark: #000000;
JSON
{
  "hex": "#5b171c",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 28
  },
  "hsl": {
    "h": 355.588,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32008,
    "c": 0.09873,
    "h": 20.7
  },
  "luminance": 0.02921
}

Semantic roles & 50–950 ramp

primary
#5B171C
secondary
#3C928C
accent
#E3D745
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5B171C

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

Preview Lab → · Contrast checker → · Palette generator →

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