#5B164A#5B164A

#5B164A is a dark, moderate pink. Relative luminance 0.033; OKLCH L 33.6% C 0.117 H 339.4°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#5B164A
RGBrgb(91, 22, 74)
HSLhsl(315, 61%, 22%)
HSVhsv(315, 76%, 36%)
CMYKcmyk(0%, 75.8%, 18.7%, 64.3%)
CIE-LABlab(21.18, 37.01, -15.27)
CIE-LCHlch(21.18, 40.04, 337.58°)
OKLaboklab(33.6% 0.11 -0.0412)
OKLCHoklch(33.6% 0.117 339.4)
XYZxyz(5.8375, 3.2929, 6.8054)
Luminance0.0329 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B164A #165B27
analogous
#4A165B #5B164A #5B1627
triadic
#5B164A #4A5B16 #164A5B
tetradic
#5B164A #5B4A16 #165B27 #16275B
square
#5B164A #5B4A16 #165B27 #16275B
split-complementary
#5B164A #275B16 #165B4A
monochromatic
#190614 #2A0A22 #5B164A #8C2272 #BE2E9A

Accessibility & contrast

On white

12.66
#5B164A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5B164A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B164A
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B164A#FFFFFF#000000##FFFFFF
##5B164A1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2C4B
Deuteranopia (green-blind)
#303748
Tritanopia (blue-blind)
#61182E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b164a;
/* rgb */ color: rgb(91, 22, 74);
/* oklch */ color: oklch(33.6% 0.117 339.4);
Tailwind
colors: {
  custom: {
    50: '#8c5a7c',
    500: '#5b164a',
    950: '#000000',
  },
}
SCSS
$custom: #5b164a;
$custom-light: #8c5a7c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b164a",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 74
  },
  "hsl": {
    "h": 314.783,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33603,
    "c": 0.11746,
    "h": 339.4
  },
  "luminance": 0.03292
}

Semantic roles & 50–950 ramp

primary
#5B164A
secondary
#3B9250
accent
#E46B44
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5B164A

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

Preview Lab → · Contrast checker → · Palette generator →

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