#5C171B#5C171B

#5C171B is a dark, moderate red. Relative luminance 0.030; OKLCH L 32.2% C 0.100 H 21.7°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#5C171B
RGBrgb(92, 23, 27)
HSLhsl(357, 60%, 23%)
HSVhsv(357, 75%, 36%)
CMYKcmyk(0%, 75%, 70.7%, 63.9%)
CIE-LABlab(19.91, 31.52, 15.63)
CIE-LCHlch(19.91, 35.18, 26.37°)
OKLaboklab(32.18% 0.0929 0.037)
OKLCHoklch(32.18% 0.1 21.7)
XYZxyz(4.9184, 2.9679, 1.3506)
Luminance0.0297 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C171B #175C58
analogous
#5C173D #5C171B #5C3617
triadic
#5C171B #1B5C17 #171B5C
tetradic
#5C171B #3D5C17 #175C58 #36175C
square
#5C171B #3D5C17 #175C58 #36175C
split-complementary
#5C171B #175C36 #173D5C
monochromatic
#180607 #2B0B0D #5C171B #8D2329 #BE2F38

Accessibility & contrast

On white

13.18
#5C171B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#5C171B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C171B
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C171B#FFFFFF#000000##FFFFFF
##5C171B1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A271B
Deuteranopia (green-blind)
#3B3619
Tritanopia (blue-blind)
#660419
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5c171b;
/* rgb */ color: rgb(92, 23, 27);
/* oklch */ color: oklch(32.2% 0.100 21.7);
Tailwind
colors: {
  custom: {
    50: '#905957',
    500: '#5c171b',
    950: '#000000',
  },
}
SCSS
$custom: #5c171b;
$custom-light: #905957;
$custom-dark: #000000;
JSON
{
  "hex": "#5c171b",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 27
  },
  "hsl": {
    "h": 356.522,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32181,
    "c": 0.1,
    "h": 21.7
  },
  "luminance": 0.02967
}

Semantic roles & 50–950 ramp

primary
#5C171B
secondary
#3C938E
accent
#E3DA45
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5C171B

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

Preview Lab → · Contrast checker → · Palette generator →

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