#5B164F#5B164F

#5B164F is a dark, vivid pink. Relative luminance 0.034; OKLCH L 33.9% C 0.121 H 335.8°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#5B164F
RGBrgb(91, 22, 79)
HSLhsl(310, 61%, 22%)
HSVhsv(310, 76%, 36%)
CMYKcmyk(0%, 75.8%, 13.2%, 64.3%)
CIE-LABlab(21.44, 37.84, -18.25)
CIE-LCHlch(21.44, 42.01, 334.25°)
OKLaboklab(33.88% 0.1107 -0.0497)
OKLCHoklch(33.88% 0.121 335.8)
XYZxyz(6.0127, 3.3630, 7.7281)
Luminance0.0336 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B164F #165B22
analogous
#45165B #5B164F #5B162D
triadic
#5B164F #4F5B16 #164F5B
tetradic
#5B164F #5B4516 #165B22 #162D5B
square
#5B164F #5B4516 #165B22 #162D5B
split-complementary
#5B164F #2D5B16 #165B45
monochromatic
#190615 #2A0A24 #5B164F #8C227A #BE2EA5

Accessibility & contrast

On white

12.56
#5B164F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B164F
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B164F#FFFFFF#000000##FFFFFF
##5B164F1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172D51
Deuteranopia (green-blind)
#2E374D
Tritanopia (blue-blind)
#601B30
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b164f;
/* rgb */ color: rgb(91, 22, 79);
/* oklch */ color: oklch(33.9% 0.121 335.8);
Tailwind
colors: {
  custom: {
    50: '#8c5b80',
    500: '#5b164f',
    950: '#000000',
  },
}
SCSS
$custom: #5b164f;
$custom-light: #8c5b80;
$custom-dark: #000000;
JSON
{
  "hex": "#5b164f",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 79
  },
  "hsl": {
    "h": 310.435,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33879,
    "c": 0.12137,
    "h": 335.8
  },
  "luminance": 0.03362
}

Semantic roles & 50–950 ramp

primary
#5B164F
secondary
#3B924A
accent
#E46044
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B164F

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

Preview Lab → · Contrast checker → · Palette generator →

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