#5A164E#5A164E

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

Color values

HEX#5A164E
RGBrgb(90, 22, 78)
HSLhsl(311, 61%, 22%)
HSVhsv(311, 76%, 35%)
CMYKcmyk(0%, 75.6%, 13.3%, 64.7%)
CIE-LABlab(21.20, 37.39, -17.97)
CIE-LCHlch(21.20, 41.48, 334.33°)
OKLaboklab(33.65% 0.1095 -0.0489)
OKLCHoklch(33.65% 0.12 335.9)
XYZxyz(5.8786, 3.2981, 7.5332)
Luminance0.0330 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A164E #165A22
analogous
#44165A #5A164E #5A162C
triadic
#5A164E #4E5A16 #164E5A
tetradic
#5A164E #5A4416 #165A22 #162C5A
square
#5A164E #5A4416 #165A22 #162C5A
split-complementary
#5A164E #2C5A16 #165A44
monochromatic
#190615 #290A23 #5A164E #8B2279 #BC2EA3

Accessibility & contrast

On white

12.65
#5A164E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A164E
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A164E#FFFFFF#000000##FFFFFF
##5A164E1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172C50
Deuteranopia (green-blind)
#2E374C
Tritanopia (blue-blind)
#5F1B30
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a164e;
/* rgb */ color: rgb(90, 22, 78);
/* oklch */ color: oklch(33.6% 0.120 335.9);
Tailwind
colors: {
  custom: {
    50: '#8b5a7f',
    500: '#5a164e',
    950: '#000000',
  },
}
SCSS
$custom: #5a164e;
$custom-light: #8b5a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a164e",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 78
  },
  "hsl": {
    "h": 310.588,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33649,
    "c": 0.1199,
    "h": 335.9
  },
  "luminance": 0.03298
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A164E

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

Preview Lab → · Contrast checker → · Palette generator →

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