#5B1117#5B1117

#5B1117 is a dark, moderate red. Relative luminance 0.027; OKLCH L 31.2% C 0.106 H 21.8°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#5B1117
RGBrgb(91, 17, 23)
HSLhsl(355, 69%, 21%)
HSVhsv(355, 81%, 36%)
CMYKcmyk(0%, 81.3%, 74.7%, 64.3%)
CIE-LABlab(18.75, 33.36, 16.89)
CIE-LCHlch(18.75, 37.39, 26.86°)
OKLaboklab(31.25% 0.098 0.0392)
OKLCHoklch(31.25% 0.106 21.8)
XYZxyz(4.6700, 2.6876, 1.0833)
Luminance0.0269 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1117 #115B55
analogous
#5B113C #5B1117 #5B3011
triadic
#5B1117 #175B11 #11175B
tetradic
#5B1117 #3C5B11 #115B55 #30115B
square
#5B1117 #3C5B11 #115B55 #30115B
split-complementary
#5B1117 #115B30 #113C5B
monochromatic
#1A0507 #27070A #5B1117 #8F1B24 #C22431

Accessibility & contrast

On white

13.66
#5B1117 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#5B1117 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1117
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1117#FFFFFF#000000##FFFFFF
##5B11171.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#272417
Deuteranopia (green-blind)
#393315
Tritanopia (blue-blind)
#650014
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5b1117;
/* rgb */ color: rgb(91, 17, 23);
/* oklch */ color: oklch(31.2% 0.106 21.8);
Tailwind
colors: {
  custom: {
    50: '#905653',
    500: '#5b1117',
    950: '#000000',
  },
}
SCSS
$custom: #5b1117;
$custom-light: #905653;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1117",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 23
  },
  "hsl": {
    "h": 355.135,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31249,
    "c": 0.10554,
    "h": 21.8
  },
  "luminance": 0.02687
}

Semantic roles & 50–950 ramp

primary
#5B1117
secondary
#34948C
accent
#EBDD3C
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0302
muted
#7E7878

Preview Lab

Preview with #5B1117

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

Preview Lab → · Contrast checker → · Palette generator →

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