#5B170E#5B170E

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

Color values

HEX#5B170E
RGBrgb(91, 23, 14)
HSLhsl(7, 73%, 21%)
HSVhsv(7, 85%, 36%)
CMYKcmyk(0%, 74.7%, 84.6%, 64.3%)
CIE-LABlab(19.51, 30.46, 23.32)
CIE-LCHlch(19.51, 38.36, 37.44°)
OKLaboklab(31.78% 0.0867 0.0516)
OKLCHoklch(31.78% 0.101 30.8)
XYZxyz(4.7006, 2.8694, 0.7217)
Luminance0.0287 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B170E #0E525B
analogous
#5B0E2B #5B170E #5B3D0E
triadic
#5B170E #0E5B17 #170E5B
tetradic
#5B170E #2B5B0E #0E525B #3D0E5B
square
#5B170E #2B5B0E #0E525B #3D0E5B
split-complementary
#5B170E #0E5B3D #0E2B5B
monochromatic
#1B0704 #260A06 #5B170E #902416 #C5321E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B170E#FFFFFF#000000##FFFFFF
##5B170E1.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)
#2B260C
Deuteranopia (green-blind)
#3C350B
Tritanopia (blue-blind)
#650115
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5b170e;
/* rgb */ color: rgb(91, 23, 14);
/* oklch */ color: oklch(31.8% 0.101 30.8);
Tailwind
colors: {
  custom: {
    50: '#90594d',
    500: '#5b170e',
    950: '#000000',
  },
}
SCSS
$custom: #5b170e;
$custom-light: #90594d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b170e",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 14
  },
  "hsl": {
    "h": 7.013,
    "s": 73.333,
    "l": 20.588
  },
  "oklch": {
    "l": 0.3178,
    "c": 0.10087,
    "h": 30.8
  },
  "luminance": 0.02869
}

Semantic roles & 50–950 ramp

primary
#5B170E
secondary
#308995
accent
#DAF038
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0401
muted
#7E7977

Preview Lab

Preview with #5B170E

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

Preview Lab → · Contrast checker → · Palette generator →

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