#5C171F#5C171F

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

Color values

HEX#5C171F
RGBrgb(92, 23, 31)
HSLhsl(353, 60%, 23%)
HSVhsv(353, 75%, 36%)
CMYKcmyk(0%, 75%, 66.3%, 63.9%)
CIE-LABlab(19.99, 31.80, 12.96)
CIE-LCHlch(19.99, 34.33, 22.17°)
OKLaboklab(32.27% 0.0947 0.0314)
OKLCHoklch(32.27% 0.1 18.3)
XYZxyz(4.9678, 2.9877, 1.6112)
Luminance0.0299 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C171F #175C54
analogous
#5C1742 #5C171F #5C3117
triadic
#5C171F #1F5C17 #171F5C
tetradic
#5C171F #425C17 #175C54 #31175C
square
#5C171F #425C17 #175C54 #31175C
split-complementary
#5C171F #175C31 #17425C
monochromatic
#180608 #2B0B0F #5C171F #8D232F #BE2F40

Accessibility & contrast

On white

13.15
#5C171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#5C171F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C171F
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C171F#FFFFFF#000000##FFFFFF
##5C171F1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29271F
Deuteranopia (green-blind)
#3B361D
Tritanopia (blue-blind)
#65051A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5c171f;
/* rgb */ color: rgb(92, 23, 31);
/* oklch */ color: oklch(32.3% 0.100 18.3);
Tailwind
colors: {
  custom: {
    50: '#8f595a',
    500: '#5c171f',
    950: '#000000',
  },
}
SCSS
$custom: #5c171f;
$custom-light: #8f595a;
$custom-dark: #000000;
JSON
{
  "hex": "#5c171f",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 353.043,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32266,
    "c": 0.09976,
    "h": 18.3
  },
  "luminance": 0.02987
}

Semantic roles & 50–950 ramp

primary
#5C171F
secondary
#3C9389
accent
#E3D145
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5C171F

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

Preview Lab → · Contrast checker → · Palette generator →

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