#5B170F#5B170F

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

Color values

HEX#5B170F
RGBrgb(91, 23, 15)
HSLhsl(6, 72%, 21%)
HSVhsv(6, 84%, 36%)
CMYKcmyk(0%, 74.7%, 83.5%, 64.3%)
CIE-LABlab(19.52, 30.50, 22.82)
CIE-LCHlch(19.52, 38.09, 36.80°)
OKLaboklab(31.79% 0.087 0.0506)
OKLCHoklch(31.79% 0.101 30.2)
XYZxyz(4.7075, 2.8721, 0.7583)
Luminance0.0287 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B170F #0F535B
analogous
#5B0F2D #5B170F #5B3D0F
triadic
#5B170F #0F5B17 #170F5B
tetradic
#5B170F #2D5B0F #0F535B #3D0F5B
square
#5B170F #2D5B0F #0F535B #3D0F5B
split-complementary
#5B170F #0F5B3D #0F2D5B
monochromatic
#1A0704 #260A06 #5B170F #902418 #C43220

Accessibility & contrast

On white

13.34
#5B170F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#5B170F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B170F
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B170F#FFFFFF#000000##FFFFFF
##5B170F1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B260E
Deuteranopia (green-blind)
#3C350C
Tritanopia (blue-blind)
#650216
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5b170f;
/* rgb */ color: rgb(91, 23, 15);
/* oklch */ color: oklch(31.8% 0.101 30.2);
Tailwind
colors: {
  custom: {
    50: '#90594e',
    500: '#5b170f',
    950: '#000000',
  },
}
SCSS
$custom: #5b170f;
$custom-light: #90594e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b170f",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 15
  },
  "hsl": {
    "h": 6.316,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31792,
    "c": 0.10068,
    "h": 30.2
  },
  "luminance": 0.02871
}

Semantic roles & 50–950 ramp

primary
#5B170F
secondary
#318A95
accent
#DBEE39
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0401
muted
#7E7977

Preview Lab

Preview with #5B170F

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

Preview Lab → · Contrast checker → · Palette generator →

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