#5B172A#5B172A

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

Color values

HEX#5B172A
RGBrgb(91, 23, 42)
HSLhsl(343, 60%, 22%)
HSVhsv(343, 75%, 36%)
CMYKcmyk(0%, 74.7%, 53.8%, 64.3%)
CIE-LABlab(20.06, 32.39, 5.30)
CIE-LCHlch(20.06, 32.82, 9.29°)
OKLaboklab(32.37% 0.0986 0.0137)
OKLCHoklch(32.37% 0.1 7.9)
XYZxyz(5.0391, 3.0048, 2.5047)
Luminance0.0300 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B172A #175B48
analogous
#5B174C #5B172A #5B2617
triadic
#5B172A #2A5B17 #172A5B
tetradic
#5B172A #4C5B17 #175B48 #26175B
square
#5B172A #4C5B17 #175B48 #26175B
split-complementary
#5B172A #175B26 #174C5B
monochromatic
#18060B #2A0B13 #5B172A #8C2341 #BD3057

Accessibility & contrast

On white

13.12
#5B172A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B172A
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B172A#FFFFFF#000000##FFFFFF
##5B172A1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b172a;
/* rgb */ color: rgb(91, 23, 42);
/* oklch */ color: oklch(32.4% 0.100 7.9);
Tailwind
colors: {
  custom: {
    50: '#8e5a63',
    500: '#5b172a',
    950: '#000000',
  },
}
SCSS
$custom: #5b172a;
$custom-light: #8e5a63;
$custom-dark: #000000;
JSON
{
  "hex": "#5b172a",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 42
  },
  "hsl": {
    "h": 343.235,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32368,
    "c": 0.09953,
    "h": 7.9
  },
  "luminance": 0.03004
}

Semantic roles & 50–950 ramp

primary
#5B172A
secondary
#3C927A
accent
#E3B745
background
#F9F5F5
surface
#F1E9EA
border
#CBC5C6
text
#0D0405
muted
#7E7979

Preview Lab

Preview with #5B172A

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

Preview Lab → · Contrast checker → · Palette generator →

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