#5B174A#5B174A

#5B174A is a dark, moderate pink. Relative luminance 0.033; OKLCH L 33.7% C 0.116 H 339.5°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#5B174A
RGBrgb(91, 23, 74)
HSLhsl(315, 60%, 22%)
HSVhsv(315, 75%, 36%)
CMYKcmyk(0%, 74.7%, 18.7%, 64.3%)
CIE-LABlab(21.33, 36.60, -15.04)
CIE-LCHlch(21.33, 39.57, 337.66°)
OKLaboklab(33.71% 0.1088 -0.0406)
OKLCHoklch(33.71% 0.116 339.5)
XYZxyz(5.8570, 3.3319, 6.8119)
Luminance0.0333 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B174A #175B28
analogous
#4A175B #5B174A #5B1728
triadic
#5B174A #4A5B17 #174A5B
tetradic
#5B174A #5B4A17 #175B28 #17285B
square
#5B174A #5B4A17 #175B28 #17285B
split-complementary
#5B174A #285B17 #175B4A
monochromatic
#180614 #2A0B22 #5B174A #8C2372 #BD3099

Accessibility & contrast

On white

12.60
#5B174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5B174A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B174A
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B174A#FFFFFF#000000##FFFFFF
##5B174A1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2C4B
Deuteranopia (green-blind)
#313748
Tritanopia (blue-blind)
#61192E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b174a;
/* rgb */ color: rgb(91, 23, 74);
/* oklch */ color: oklch(33.7% 0.116 339.5);
Tailwind
colors: {
  custom: {
    50: '#8c5b7c',
    500: '#5b174a',
    950: '#000000',
  },
}
SCSS
$custom: #5b174a;
$custom-light: #8c5b7c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b174a",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 315,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.3371,
    "c": 0.11609,
    "h": 339.5
  },
  "luminance": 0.03331
}

Semantic roles & 50–950 ramp

primary
#5B174A
secondary
#3C9251
accent
#E36C45
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5B174A

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

Preview Lab → · Contrast checker → · Palette generator →

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