#5B171B#5B171B

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

Color values

HEX#5B171B
RGBrgb(91, 23, 27)
HSLhsl(356, 60%, 22%)
HSVhsv(356, 75%, 36%)
CMYKcmyk(0%, 74.7%, 70.3%, 64.3%)
CIE-LABlab(19.71, 31.15, 15.32)
CIE-LCHlch(19.71, 34.71, 26.19°)
OKLaboklab(31.99% 0.0919 0.0363)
OKLCHoklch(31.99% 0.099 21.6)
XYZxyz(4.8191, 2.9168, 1.3459)
Luminance0.0292 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B171B #175B57
analogous
#5B173D #5B171B #5B3517
triadic
#5B171B #1B5B17 #171B5B
tetradic
#5B171B #3D5B17 #175B57 #35175B
square
#5B171B #3D5B17 #175B57 #35175B
split-complementary
#5B171B #175B35 #173D5B
monochromatic
#180607 #2A0B0D #5B171B #8C2329 #BD3038

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B171B#FFFFFF#000000##FFFFFF
##5B171B1.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)
#2A261B
Deuteranopia (green-blind)
#3B3519
Tritanopia (blue-blind)
#640519
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5b171b;
/* rgb */ color: rgb(91, 23, 27);
/* oklch */ color: oklch(32.0% 0.099 21.6);
Tailwind
colors: {
  custom: {
    50: '#8f5957',
    500: '#5b171b',
    950: '#000000',
  },
}
SCSS
$custom: #5b171b;
$custom-light: #8f5957;
$custom-dark: #000000;
JSON
{
  "hex": "#5b171b",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 27
  },
  "hsl": {
    "h": 356.471,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.31988,
    "c": 0.09882,
    "h": 21.6
  },
  "luminance": 0.02916
}

Semantic roles & 50–950 ramp

primary
#5B171B
secondary
#3C928D
accent
#E3DA45
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5B171B

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

Preview Lab → · Contrast checker → · Palette generator →

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