#5B173D#5B173D

#5B173D is a dark, moderate pink. Relative luminance 0.032; OKLCH L 33.1% C 0.107 H 350.2°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#5B173D
RGBrgb(91, 23, 61)
HSLhsl(326, 60%, 22%)
HSVhsv(326, 75%, 36%)
CMYKcmyk(0%, 74.7%, 33%, 64.3%)
CIE-LABlab(20.73, 34.65, -7.02)
CIE-LCHlch(20.73, 35.35, 348.54°)
OKLaboklab(33.08% 0.1057 -0.0183)
OKLCHoklch(33.08% 0.107 350.2)
XYZxyz(5.4634, 3.1745, 4.7390)
Luminance0.0317 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B173D #175B35
analogous
#57175B #5B173D #5B171B
triadic
#5B173D #3D5B17 #173D5B
tetradic
#5B173D #5B5717 #175B35 #171B5B
square
#5B173D #5B5717 #175B35 #171B5B
split-complementary
#5B173D #1B5B17 #175B57
monochromatic
#180610 #2A0B1C #5B173D #8C235E #BD307E

Accessibility & contrast

On white

12.85
#5B173D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B173D
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B173D#FFFFFF#000000##FFFFFF
##5B173D1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212A3E
Deuteranopia (green-blind)
#35363B
Tritanopia (blue-blind)
#621327
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b173d;
/* rgb */ color: rgb(91, 23, 61);
/* oklch */ color: oklch(33.1% 0.107 350.2);
Tailwind
colors: {
  custom: {
    50: '#8c5a72',
    500: '#5b173d',
    950: '#000000',
  },
}
SCSS
$custom: #5b173d;
$custom-light: #8c5a72;
$custom-dark: #000000;
JSON
{
  "hex": "#5b173d",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 61
  },
  "hsl": {
    "h": 326.471,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33078,
    "c": 0.10722,
    "h": 350.2
  },
  "luminance": 0.03174
}

Semantic roles & 50–950 ramp

primary
#5B173D
secondary
#3C9262
accent
#E38B45
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5B173D

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

Preview Lab → · Contrast checker → · Palette generator →

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