#5A164D#5A164D

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

Color values

HEX#5A164D
RGBrgb(90, 22, 77)
HSLhsl(311, 61%, 22%)
HSVhsv(311, 76%, 35%)
CMYKcmyk(0%, 75.6%, 14.4%, 64.7%)
CIE-LABlab(21.15, 37.22, -17.37)
CIE-LCHlch(21.15, 41.08, 334.98°)
OKLaboklab(33.59% 0.1093 -0.0473)
OKLCHoklch(33.59% 0.119 336.6)
XYZxyz(5.8430, 3.2838, 7.3458)
Luminance0.0328 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A164D #165A23
analogous
#45165A #5A164D #5A162B
triadic
#5A164D #4D5A16 #164D5A
tetradic
#5A164D #5A4516 #165A23 #162B5A
square
#5A164D #5A4516 #165A23 #162B5A
split-complementary
#5A164D #2B5A16 #165A45
monochromatic
#190615 #290A23 #5A164D #8B2277 #BC2EA1

Accessibility & contrast

On white

12.68
#5A164D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A164D
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A164D#FFFFFF#000000##FFFFFF
##5A164D1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172C4F
Deuteranopia (green-blind)
#2E374B
Tritanopia (blue-blind)
#5F1A2F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a164d;
/* rgb */ color: rgb(90, 22, 77);
/* oklch */ color: oklch(33.6% 0.119 336.6);
Tailwind
colors: {
  custom: {
    50: '#8b5a7f',
    500: '#5a164d',
    950: '#000000',
  },
}
SCSS
$custom: #5a164d;
$custom-light: #8b5a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a164d",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 77
  },
  "hsl": {
    "h": 311.471,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33593,
    "c": 0.1191,
    "h": 336.6
  },
  "luminance": 0.03283
}

Semantic roles & 50–950 ramp

primary
#5A164D
secondary
#3B914B
accent
#E46344
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A164D

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

Preview Lab → · Contrast checker → · Palette generator →

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