#5B172B#5B172B

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

Color values

HEX#5B172B
RGBrgb(91, 23, 43)
HSLhsl(342, 60%, 22%)
HSVhsv(342, 75%, 36%)
CMYKcmyk(0%, 74.7%, 52.7%, 64.3%)
CIE-LABlab(20.09, 32.49, 4.63)
CIE-LCHlch(20.09, 32.82, 8.12°)
OKLaboklab(32.4% 0.099 0.0121)
OKLCHoklch(32.4% 0.1 7)
XYZxyz(5.0572, 3.0120, 2.6001)
Luminance0.0301 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B172B #175B47
analogous
#5B174D #5B172B #5B2517
triadic
#5B172B #2B5B17 #172B5B
tetradic
#5B172B #4D5B17 #175B47 #25175B
square
#5B172B #4D5B17 #175B47 #25175B
split-complementary
#5B172B #175B25 #174D5B
monochromatic
#18060C #2A0B14 #5B172B #8C2342 #BD3059

Accessibility & contrast

On white

13.11
#5B172B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#5B172B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B172B
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B172B#FFFFFF#000000##FFFFFF
##5B172B1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27282B
Deuteranopia (green-blind)
#393529
Tritanopia (blue-blind)
#640B1F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5b172b;
/* rgb */ color: rgb(91, 23, 43);
/* oklch */ color: oklch(32.4% 0.100 7.0);
Tailwind
colors: {
  custom: {
    50: '#8e5a64',
    500: '#5b172b',
    950: '#000000',
  },
}
SCSS
$custom: #5b172b;
$custom-light: #8e5a64;
$custom-dark: #000000;
JSON
{
  "hex": "#5b172b",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 43
  },
  "hsl": {
    "h": 342.353,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32399,
    "c": 0.09975,
    "h": 7
  },
  "luminance": 0.03011
}

Semantic roles & 50–950 ramp

primary
#5B172B
secondary
#3C9279
accent
#E3B445
background
#F9F5F5
surface
#F1E9EA
border
#CBC5C6
text
#0D0405
muted
#7E7979

Preview Lab

Preview with #5B172B

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

Preview Lab → · Contrast checker → · Palette generator →

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