#5B172F#5B172F

#5B172F is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.5% C 0.101 H 3.1°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#5B172F
RGBrgb(91, 23, 47)
HSLhsl(339, 60%, 22%)
HSVhsv(339, 75%, 36%)
CMYKcmyk(0%, 74.7%, 48.4%, 64.3%)
CIE-LABlab(20.21, 32.91, 1.99)
CIE-LCHlch(20.21, 32.97, 3.47°)
OKLaboklab(32.53% 0.1007 0.0055)
OKLCHoklch(32.53% 0.101 3.1)
XYZxyz(5.1343, 3.0428, 3.0057)
Luminance0.0304 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B172F #175B43
analogous
#5B1751 #5B172F #5B2117
triadic
#5B172F #2F5B17 #172F5B
tetradic
#5B172F #515B17 #175B43 #21175B
square
#5B172F #515B17 #175B43 #21175B
split-complementary
#5B172F #175B21 #17515B
monochromatic
#18060D #2A0B16 #5B172F #8C2348 #BD3061

Accessibility & contrast

On white

13.06
#5B172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B172F
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B172F#FFFFFF#000000##FFFFFF
##5B172F1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#262830
Deuteranopia (green-blind)
#38362D
Tritanopia (blue-blind)
#630D21
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b172f;
/* rgb */ color: rgb(91, 23, 47);
/* oklch */ color: oklch(32.5% 0.101 3.1);
Tailwind
colors: {
  custom: {
    50: '#8d5a67',
    500: '#5b172f',
    950: '#000000',
  },
}
SCSS
$custom: #5b172f;
$custom-light: #8d5a67;
$custom-dark: #000000;
JSON
{
  "hex": "#5b172f",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 338.824,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.3253,
    "c": 0.10083,
    "h": 3.1
  },
  "luminance": 0.03042
}

Semantic roles & 50–950 ramp

primary
#5B172F
secondary
#3C9274
accent
#E3AB45
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0406
muted
#7E797A

Preview Lab

Preview with #5B172F

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

Preview Lab → · Contrast checker → · Palette generator →

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