#5B170C#5B170C

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

Color values

HEX#5B170C
RGBrgb(91, 23, 12)
HSLhsl(8, 77%, 20%)
HSVhsv(8, 87%, 36%)
CMYKcmyk(0%, 74.7%, 86.8%, 64.3%)
CIE-LABlab(19.49, 30.38, 24.25)
CIE-LCHlch(19.49, 38.88, 38.60°)
OKLaboklab(31.76% 0.086 0.0535)
OKLCHoklch(31.76% 0.101 31.9)
XYZxyz(4.6877, 2.8642, 0.6538)
Luminance0.0286 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B170C #0C505B
analogous
#5B0C29 #5B170C #5B3E0C
triadic
#5B170C #0C5B17 #170C5B
tetradic
#5B170C #295B0C #0C505B #3E0C5B
square
#5B170C #295B0C #0C505B #3E0C5B
split-complementary
#5B170C #0C5B3E #0C295B
monochromatic
#1B0704 #250905 #5B170C #912513 #C7321A

Accessibility & contrast

On white

13.35
#5B170C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B170C
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B170C#FFFFFF#000000##FFFFFF
##5B170C1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B260A
Deuteranopia (green-blind)
#3C3509
Tritanopia (blue-blind)
#650115
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5b170c;
/* rgb */ color: rgb(91, 23, 12);
/* oklch */ color: oklch(31.8% 0.101 31.9);
Tailwind
colors: {
  custom: {
    50: '#90594c',
    500: '#5b170c',
    950: '#000000',
  },
}
SCSS
$custom: #5b170c;
$custom-light: #90594c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b170c",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 12
  },
  "hsl": {
    "h": 8.354,
    "s": 76.699,
    "l": 20.196
  },
  "oklch": {
    "l": 0.31757,
    "c": 0.10127,
    "h": 31.9
  },
  "luminance": 0.02863
}

Semantic roles & 50–950 ramp

primary
#5B170C
secondary
#2D8796
accent
#D9F335
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0401
muted
#7E7977

Preview Lab

Preview with #5B170C

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

Preview Lab → · Contrast checker → · Palette generator →

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