#5B172D#5B172D

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

Color values

HEX#5B172D
RGBrgb(91, 23, 45)
HSLhsl(341, 60%, 22%)
HSVhsv(341, 75%, 36%)
CMYKcmyk(0%, 74.7%, 50.5%, 64.3%)
CIE-LABlab(20.15, 32.70, 3.31)
CIE-LCHlch(20.15, 32.86, 5.78°)
OKLaboklab(32.46% 0.0999 0.0088)
OKLCHoklch(32.46% 0.1 5)
XYZxyz(5.0948, 3.0271, 2.7981)
Luminance0.0303 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B172D #175B45
analogous
#5B174F #5B172D #5B2317
triadic
#5B172D #2D5B17 #172D5B
tetradic
#5B172D #4F5B17 #175B45 #23175B
square
#5B172D #4F5B17 #175B45 #23175B
split-complementary
#5B172D #175B23 #174F5B
monochromatic
#18060C #2A0B15 #5B172D #8C2345 #BD305D

Accessibility & contrast

On white

13.08
#5B172D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B172D
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B172D#FFFFFF#000000##FFFFFF
##5B172D1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26282E
Deuteranopia (green-blind)
#38362B
Tritanopia (blue-blind)
#630C20
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b172d;
/* rgb */ color: rgb(91, 23, 45);
/* oklch */ color: oklch(32.5% 0.100 5.0);
Tailwind
colors: {
  custom: {
    50: '#8d5a65',
    500: '#5b172d',
    950: '#000000',
  },
}
SCSS
$custom: #5b172d;
$custom-light: #8d5a65;
$custom-dark: #000000;
JSON
{
  "hex": "#5b172d",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 45
  },
  "hsl": {
    "h": 340.588,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32463,
    "c": 0.10024,
    "h": 5
  },
  "luminance": 0.03026
}

Semantic roles & 50–950 ramp

primary
#5B172D
secondary
#3C9276
accent
#E3B045
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0405
muted
#7E797A

Preview Lab

Preview with #5B172D

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

Preview Lab → · Contrast checker → · Palette generator →

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