#5C171C#5C171C

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

Color values

HEX#5C171C
RGBrgb(92, 23, 28)
HSLhsl(356, 60%, 23%)
HSVhsv(356, 75%, 36%)
CMYKcmyk(0%, 75%, 69.6%, 63.9%)
CIE-LABlab(19.93, 31.58, 14.96)
CIE-LCHlch(19.93, 34.95, 25.35°)
OKLaboklab(32.2% 0.0934 0.0356)
OKLCHoklch(32.2% 0.1 20.9)
XYZxyz(4.9301, 2.9727, 1.4126)
Luminance0.0297 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C171C #175C57
analogous
#5C173F #5C171C #5C3417
triadic
#5C171C #1C5C17 #171C5C
tetradic
#5C171C #3F5C17 #175C57 #34175C
square
#5C171C #3F5C17 #175C57 #34175C
split-complementary
#5C171C #175C34 #173F5C
monochromatic
#180607 #2B0B0D #5C171C #8D232B #BE2F3A

Accessibility & contrast

On white

13.17
#5C171C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C171C
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C171C#FFFFFF#000000##FFFFFF
##5C171C1.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c171c;
/* rgb */ color: rgb(92, 23, 28);
/* oklch */ color: oklch(32.2% 0.100 20.9);
Tailwind
colors: {
  custom: {
    50: '#905958',
    500: '#5c171c',
    950: '#000000',
  },
}
SCSS
$custom: #5c171c;
$custom-light: #905958;
$custom-dark: #000000;
JSON
{
  "hex": "#5c171c",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 28
  },
  "hsl": {
    "h": 355.652,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32201,
    "c": 0.09992,
    "h": 20.9
  },
  "luminance": 0.02972
}

Semantic roles & 50–950 ramp

primary
#5C171C
secondary
#3C938D
accent
#E3D845
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5C171C

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

Preview Lab → · Contrast checker → · Palette generator →

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