#5B164D#5B164D

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

Color values

HEX#5B164D
RGBrgb(91, 22, 77)
HSLhsl(312, 61%, 22%)
HSVhsv(312, 76%, 36%)
CMYKcmyk(0%, 75.8%, 15.4%, 64.3%)
CIE-LABlab(21.34, 37.50, -17.06)
CIE-LCHlch(21.34, 41.20, 335.53°)
OKLaboklab(33.77% 0.1105 -0.0463)
OKLCHoklch(33.77% 0.12 337.2)
XYZxyz(5.9410, 3.3343, 7.3504)
Luminance0.0333 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B164D #165B24
analogous
#47165B #5B164D #5B162B
triadic
#5B164D #4D5B16 #164D5B
tetradic
#5B164D #5B4716 #165B24 #162B5B
square
#5B164D #5B4716 #165B24 #162B5B
split-complementary
#5B164D #2B5B16 #165B47
monochromatic
#190615 #2A0A23 #5B164D #8C2277 #BE2EA0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B164D#FFFFFF#000000##FFFFFF
##5B164D1.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)
#182C4F
Deuteranopia (green-blind)
#2F374B
Tritanopia (blue-blind)
#601A2F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b164d;
/* rgb */ color: rgb(91, 22, 77);
/* oklch */ color: oklch(33.8% 0.120 337.2);
Tailwind
colors: {
  custom: {
    50: '#8c5a7f',
    500: '#5b164d',
    950: '#000000',
  },
}
SCSS
$custom: #5b164d;
$custom-light: #8c5a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b164d",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 77
  },
  "hsl": {
    "h": 312.174,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33767,
    "c": 0.11978,
    "h": 337.2
  },
  "luminance": 0.03334
}

Semantic roles & 50–950 ramp

primary
#5B164D
secondary
#3B924C
accent
#E46444
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B164D

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

Preview Lab → · Contrast checker → · Palette generator →

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