#5C172F#5C172F

#5C172F is a dark, moderate pink. Relative luminance 0.031; OKLCH L 32.7% C 0.102 H 3.5°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#5C172F
RGBrgb(92, 23, 47)
HSLhsl(339, 60%, 23%)
HSVhsv(339, 75%, 36%)
CMYKcmyk(0%, 75%, 48.9%, 63.9%)
CIE-LABlab(20.42, 33.25, 2.31)
CIE-LCHlch(20.42, 33.33, 3.98°)
OKLaboklab(32.72% 0.1017 0.0063)
OKLCHoklch(32.72% 0.102 3.5)
XYZxyz(5.2335, 3.0940, 3.0104)
Luminance0.0309 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C172F #175C44
analogous
#5C1752 #5C172F #5C2117
triadic
#5C172F #2F5C17 #172F5C
tetradic
#5C172F #525C17 #175C44 #21175C
square
#5C172F #525C17 #175C44 #21175C
split-complementary
#5C172F #175C21 #17525C
monochromatic
#18060D #2B0B16 #5C172F #8D2348 #BE2F61

Accessibility & contrast

On white

12.97
#5C172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#5C172F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C172F
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C172F#FFFFFF#000000##FFFFFF
##5C172F1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#262930
Deuteranopia (green-blind)
#38362D
Tritanopia (blue-blind)
#640C21
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5c172f;
/* rgb */ color: rgb(92, 23, 47);
/* oklch */ color: oklch(32.7% 0.102 3.5);
Tailwind
colors: {
  custom: {
    50: '#8e5a67',
    500: '#5c172f',
    950: '#000000',
  },
}
SCSS
$custom: #5c172f;
$custom-light: #8e5a67;
$custom-dark: #000000;
JSON
{
  "hex": "#5c172f",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 339.13,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32717,
    "c": 0.10188,
    "h": 3.5
  },
  "luminance": 0.03093
}

Semantic roles & 50–950 ramp

primary
#5C172F
secondary
#3C9375
accent
#E3AC45
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0406
muted
#7E797A

Preview Lab

Preview with #5C172F

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

Preview Lab → · Contrast checker → · Palette generator →

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