#5B173A#5B173A

#5B173A is a dark, moderate pink. Relative luminance 0.031; OKLCH L 32.9% C 0.106 H 352.8°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#5B173A
RGBrgb(91, 23, 58)
HSLhsl(329, 60%, 22%)
HSVhsv(329, 75%, 36%)
CMYKcmyk(0%, 74.7%, 36.3%, 64.3%)
CIE-LABlab(20.61, 34.24, -5.12)
CIE-LCHlch(20.61, 34.62, 351.49°)
OKLaboklab(32.95% 0.1047 -0.0131)
OKLCHoklch(32.95% 0.106 352.8)
XYZxyz(5.3848, 3.1430, 4.3253)
Luminance0.0314 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B173A #175B38
analogous
#5A175B #5B173A #5B1718
triadic
#5B173A #3A5B17 #173A5B
tetradic
#5B173A #5B5A17 #175B38 #17185B
square
#5B173A #5B5A17 #175B38 #17185B
split-complementary
#5B173A #185B17 #175B5A
monochromatic
#180610 #2A0B1B #5B173A #8C2359 #BD3078

Accessibility & contrast

On white

12.90
#5B173A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5B173A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B173A
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B173A#FFFFFF#000000##FFFFFF
##5B173A1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222A3B
Deuteranopia (green-blind)
#353638
Tritanopia (blue-blind)
#621226
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b173a;
/* rgb */ color: rgb(91, 23, 58);
/* oklch */ color: oklch(32.9% 0.106 352.8);
Tailwind
colors: {
  custom: {
    50: '#8d5a70',
    500: '#5b173a',
    950: '#000000',
  },
}
SCSS
$custom: #5b173a;
$custom-light: #8d5a70;
$custom-dark: #000000;
JSON
{
  "hex": "#5b173a",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 58
  },
  "hsl": {
    "h": 329.118,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32949,
    "c": 0.10553,
    "h": 352.8
  },
  "luminance": 0.03142
}

Semantic roles & 50–950 ramp

primary
#5B173A
secondary
#3C9266
accent
#E39245
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0C0407
muted
#7D797A

Preview Lab

Preview with #5B173A

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

Preview Lab → · Contrast checker → · Palette generator →

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