#5B171F#5B171F

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

Color values

HEX#5B171F
RGBrgb(91, 23, 31)
HSLhsl(353, 60%, 22%)
HSVhsv(353, 75%, 36%)
CMYKcmyk(0%, 74.7%, 65.9%, 64.3%)
CIE-LABlab(19.79, 31.43, 12.65)
CIE-LCHlch(19.79, 33.88, 21.92°)
OKLaboklab(32.07% 0.0937 0.0307)
OKLCHoklch(32.07% 0.099 18.1)
XYZxyz(4.8686, 2.9366, 1.6065)
Luminance0.0294 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B171F #175B53
analogous
#5B1741 #5B171F #5B3117
triadic
#5B171F #1F5B17 #171F5B
tetradic
#5B171F #415B17 #175B53 #31175B
square
#5B171F #415B17 #175B53 #31175B
split-complementary
#5B171F #175B31 #17415B
monochromatic
#180608 #2A0B0E #5B171F #8C2330 #BD3040

Accessibility & contrast

On white

13.23
#5B171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B171F
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B171F#FFFFFF#000000##FFFFFF
##5B171F1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29271F
Deuteranopia (green-blind)
#3A351D
Tritanopia (blue-blind)
#64061A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5b171f;
/* rgb */ color: rgb(91, 23, 31);
/* oklch */ color: oklch(32.1% 0.099 18.1);
Tailwind
colors: {
  custom: {
    50: '#8f595a',
    500: '#5b171f',
    950: '#000000',
  },
}
SCSS
$custom: #5b171f;
$custom-light: #8f595a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b171f",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 352.941,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32074,
    "c": 0.09858,
    "h": 18.1
  },
  "luminance": 0.02936
}

Semantic roles & 50–950 ramp

primary
#5B171F
secondary
#3C9288
accent
#E3D045
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5B171F

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

Preview Lab → · Contrast checker → · Palette generator →

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