#5B173E#5B173E

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

Color values

HEX#5B173E
RGBrgb(91, 23, 62)
HSLhsl(326, 60%, 22%)
HSVhsv(326, 75%, 36%)
CMYKcmyk(0%, 74.7%, 31.9%, 64.3%)
CIE-LABlab(20.77, 34.79, -7.65)
CIE-LCHlch(20.77, 35.62, 347.59°)
OKLaboklab(33.12% 0.1059 -0.02)
OKLCHoklch(33.12% 0.108 349.3)
XYZxyz(5.4905, 3.1853, 4.8822)
Luminance0.0319 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B173E #175B34
analogous
#56175B #5B173E #5B171C
triadic
#5B173E #3E5B17 #173E5B
tetradic
#5B173E #5B5617 #175B34 #171C5B
square
#5B173E #5B5617 #175B34 #171C5B
split-complementary
#5B173E #1C5B17 #175B56
monochromatic
#180611 #2A0B1D #5B173E #8C235F #BD3081

Accessibility & contrast

On white

12.83
#5B173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#5B173E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B173E
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B173E#FFFFFF#000000##FFFFFF
##5B173E1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212A3F
Deuteranopia (green-blind)
#34363C
Tritanopia (blue-blind)
#621428
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b173e;
/* rgb */ color: rgb(91, 23, 62);
/* oklch */ color: oklch(33.1% 0.108 349.3);
Tailwind
colors: {
  custom: {
    50: '#8c5a73',
    500: '#5b173e',
    950: '#000000',
  },
}
SCSS
$custom: #5b173e;
$custom-light: #8c5a73;
$custom-dark: #000000;
JSON
{
  "hex": "#5b173e",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 325.588,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33122,
    "c": 0.10782,
    "h": 349.3
  },
  "luminance": 0.03185
}

Semantic roles & 50–950 ramp

primary
#5B173E
secondary
#3C9261
accent
#E38845
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5B173E

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

Preview Lab → · Contrast checker → · Palette generator →

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