#5C172B#5C172B

#5C172B is a dark, moderate pink. Relative luminance 0.031; OKLCH L 32.6% C 0.101 H 7.3°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#5C172B
RGBrgb(92, 23, 43)
HSLhsl(343, 60%, 23%)
HSVhsv(343, 75%, 36%)
CMYKcmyk(0%, 75%, 53.3%, 63.9%)
CIE-LABlab(20.30, 32.84, 4.95)
CIE-LCHlch(20.30, 33.21, 8.57°)
OKLaboklab(32.59% 0.1 0.0129)
OKLCHoklch(32.59% 0.101 7.3)
XYZxyz(5.1565, 3.0632, 2.6048)
Luminance0.0306 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C172B #175C48
analogous
#5C174D #5C172B #5C2617
triadic
#5C172B #2B5C17 #172B5C
tetradic
#5C172B #4D5C17 #175C48 #26175C
square
#5C172B #4D5C17 #175C48 #26175C
split-complementary
#5C172B #175C26 #174D5C
monochromatic
#18060B #2B0B14 #5C172B #8D2342 #BE2F59

Accessibility & contrast

On white

13.02
#5C172B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C172B
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C172B#FFFFFF#000000##FFFFFF
##5C172B1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27282B
Deuteranopia (green-blind)
#393629
Tritanopia (blue-blind)
#650A1F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5c172b;
/* rgb */ color: rgb(92, 23, 43);
/* oklch */ color: oklch(32.6% 0.101 7.3);
Tailwind
colors: {
  custom: {
    50: '#8e5a64',
    500: '#5c172b',
    950: '#000000',
  },
}
SCSS
$custom: #5c172b;
$custom-light: #8e5a64;
$custom-dark: #000000;
JSON
{
  "hex": "#5c172b",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 43
  },
  "hsl": {
    "h": 342.609,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32587,
    "c": 0.10084,
    "h": 7.3
  },
  "luminance": 0.03063
}

Semantic roles & 50–950 ramp

primary
#5C172B
secondary
#3C937A
accent
#E3B545
background
#F9F5F5
surface
#F1E9EA
border
#CBC5C6
text
#0D0405
muted
#7E7979

Preview Lab

Preview with #5C172B

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

Preview Lab → · Contrast checker → · Palette generator →

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