#5A164A#5A164A

#5A164A is a dark, moderate pink. Relative luminance 0.032; OKLCH L 33.4% C 0.117 H 338.8°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#5A164A
RGBrgb(90, 22, 74)
HSLhsl(314, 61%, 22%)
HSVhsv(314, 76%, 35%)
CMYKcmyk(0%, 75.6%, 17.8%, 64.7%)
CIE-LABlab(20.99, 36.72, -15.58)
CIE-LCHlch(20.99, 39.89, 337.01°)
OKLaboklab(33.43% 0.1089 -0.0421)
OKLCHoklch(33.43% 0.117 338.8)
XYZxyz(5.7395, 3.2424, 6.8008)
Luminance0.0324 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A164A #165A26
analogous
#48165A #5A164A #5A1628
triadic
#5A164A #4A5A16 #164A5A
tetradic
#5A164A #5A4816 #165A26 #16285A
square
#5A164A #5A4816 #165A26 #16285A
split-complementary
#5A164A #285A16 #165A48
monochromatic
#190614 #290A22 #5A164A #8B2272 #BC2E9B

Accessibility & contrast

On white

12.74
#5A164A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5A164A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A164A
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A164A#FFFFFF#000000##FFFFFF
##5A164A1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192C4B
Deuteranopia (green-blind)
#2F3648
Tritanopia (blue-blind)
#5F192E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a164a;
/* rgb */ color: rgb(90, 22, 74);
/* oklch */ color: oklch(33.4% 0.117 338.8);
Tailwind
colors: {
  custom: {
    50: '#8b5a7c',
    500: '#5a164a',
    950: '#000000',
  },
}
SCSS
$custom: #5a164a;
$custom-light: #8b5a7c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a164a",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 74
  },
  "hsl": {
    "h": 314.118,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33428,
    "c": 0.11674,
    "h": 338.8
  },
  "luminance": 0.03242
}

Semantic roles & 50–950 ramp

primary
#5A164A
secondary
#3B914F
accent
#E46A44
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5A164A

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

Preview Lab → · Contrast checker → · Palette generator →

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