#5E171B#5E171B

#5E171B is a dark, moderate red. Relative luminance 0.031; OKLCH L 32.6% C 0.102 H 21.9°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#5E171B
RGBrgb(94, 23, 27)
HSLhsl(357, 61%, 23%)
HSVhsv(357, 76%, 37%)
CMYKcmyk(0%, 75.5%, 71.3%, 63.1%)
CIE-LABlab(20.33, 32.24, 16.24)
CIE-LCHlch(20.33, 36.10, 26.73°)
OKLaboklab(32.57% 0.095 0.0383)
OKLCHoklch(32.57% 0.102 21.9)
XYZxyz(5.1209, 3.0724, 1.3601)
Luminance0.0307 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E171B #175E5A
analogous
#5E173E #5E171B #5E3617
triadic
#5E171B #1B5E17 #171B5E
tetradic
#5E171B #3E5E17 #175E5A #36175E
square
#5E171B #3E5E17 #175E5A #36175E
split-complementary
#5E171B #175E36 #173E5E
monochromatic
#190607 #2D0B0D #5E171B #8F2329 #C02F37

Accessibility & contrast

On white

13.01
#5E171B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#5E171B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E171B
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E171B#FFFFFF#000000##FFFFFF
##5E171B1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B271B
Deuteranopia (green-blind)
#3D3719
Tritanopia (blue-blind)
#680319
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5e171b;
/* rgb */ color: rgb(94, 23, 27);
/* oklch */ color: oklch(32.6% 0.102 21.9);
Tailwind
colors: {
  custom: {
    50: '#915a57',
    500: '#5e171b',
    950: '#000000',
  },
}
SCSS
$custom: #5e171b;
$custom-light: #915a57;
$custom-dark: #000000;
JSON
{
  "hex": "#5e171b",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 27
  },
  "hsl": {
    "h": 356.62,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.32568,
    "c": 0.10236,
    "h": 21.9
  },
  "luminance": 0.03072
}

Semantic roles & 50–950 ramp

primary
#5E171B
secondary
#3C9590
accent
#E4DB44
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0E0403
muted
#7E7978

Preview Lab

Preview with #5E171B

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

Preview Lab → · Contrast checker → · Palette generator →

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