#5B173F#5B173F

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

Color values

HEX#5B173F
RGBrgb(91, 23, 63)
HSLhsl(325, 60%, 22%)
HSVhsv(325, 75%, 36%)
CMYKcmyk(0%, 74.7%, 30.8%, 64.3%)
CIE-LABlab(20.81, 34.93, -8.28)
CIE-LCHlch(20.81, 35.90, 346.66°)
OKLaboklab(33.17% 0.1062 -0.0217)
OKLCHoklch(33.17% 0.108 348.4)
XYZxyz(5.5182, 3.1964, 5.0280)
Luminance0.0320 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B173F #175B33
analogous
#55175B #5B173F #5B171D
triadic
#5B173F #3F5B17 #173F5B
tetradic
#5B173F #5B5517 #175B33 #171D5B
square
#5B173F #5B5517 #175B33 #171D5B
split-complementary
#5B173F #1D5B17 #175B55
monochromatic
#180611 #2A0B1D #5B173F #8C2361 #BD3083

Accessibility & contrast

On white

12.81
#5B173F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B173F
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B173F#FFFFFF#000000##FFFFFF
##5B173F1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202A40
Deuteranopia (green-blind)
#34363D
Tritanopia (blue-blind)
#621428
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b173f;
/* rgb */ color: rgb(91, 23, 63);
/* oklch */ color: oklch(33.2% 0.108 348.4);
Tailwind
colors: {
  custom: {
    50: '#8c5a74',
    500: '#5b173f',
    950: '#000000',
  },
}
SCSS
$custom: #5b173f;
$custom-light: #8c5a74;
$custom-dark: #000000;
JSON
{
  "hex": "#5b173f",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 63
  },
  "hsl": {
    "h": 324.706,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33167,
    "c": 0.10843,
    "h": 348.4
  },
  "luminance": 0.03196
}

Semantic roles & 50–950 ramp

primary
#5B173F
secondary
#3C925F
accent
#E38645
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5B173F

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

Preview Lab → · Contrast checker → · Palette generator →

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