#5C172E#5C172E

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

Color values

HEX#5C172E
RGBrgb(92, 23, 46)
HSLhsl(340, 60%, 23%)
HSVhsv(340, 75%, 36%)
CMYKcmyk(0%, 75%, 50%, 63.9%)
CIE-LABlab(20.39, 33.15, 2.97)
CIE-LCHlch(20.39, 33.28, 5.12°)
OKLaboklab(32.68% 0.1013 0.008)
OKLCHoklch(32.68% 0.102 4.5)
XYZxyz(5.2136, 3.0860, 2.9054)
Luminance0.0308 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C172E #175C45
analogous
#5C1750 #5C172E #5C2217
triadic
#5C172E #2E5C17 #172E5C
tetradic
#5C172E #505C17 #175C45 #22175C
square
#5C172E #505C17 #175C45 #22175C
split-complementary
#5C172E #175C22 #17505C
monochromatic
#18060C #2B0B16 #5C172E #8D2346 #BE2F5F

Accessibility & contrast

On white

12.99
#5C172E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C172E
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C172E#FFFFFF#000000##FFFFFF
##5C172E1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26292F
Deuteranopia (green-blind)
#39362C
Tritanopia (blue-blind)
#650C20
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5c172e;
/* rgb */ color: rgb(92, 23, 46);
/* oklch */ color: oklch(32.7% 0.102 4.5);
Tailwind
colors: {
  custom: {
    50: '#8e5a66',
    500: '#5c172e',
    950: '#000000',
  },
}
SCSS
$custom: #5c172e;
$custom-light: #8e5a66;
$custom-dark: #000000;
JSON
{
  "hex": "#5c172e",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 46
  },
  "hsl": {
    "h": 340,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32683,
    "c": 0.10159,
    "h": 4.5
  },
  "luminance": 0.03085
}

Semantic roles & 50–950 ramp

primary
#5C172E
secondary
#3C9376
accent
#E3AE45
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0405
muted
#7E797A

Preview Lab

Preview with #5C172E

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

Preview Lab → · Contrast checker → · Palette generator →

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