#5A164C#5A164C

#5A164C is a dark, moderate pink. Relative luminance 0.033; OKLCH L 33.5% C 0.118 H 337.3°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#5A164C
RGBrgb(90, 22, 76)
HSLhsl(312, 61%, 22%)
HSVhsv(312, 76%, 35%)
CMYKcmyk(0%, 75.6%, 15.6%, 64.7%)
CIE-LABlab(21.09, 37.05, -16.78)
CIE-LCHlch(21.09, 40.67, 335.64°)
OKLaboklab(33.54% 0.1092 -0.0456)
OKLCHoklch(33.54% 0.118 337.3)
XYZxyz(5.8080, 3.2698, 7.1613)
Luminance0.0327 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A164C #165A24
analogous
#46165A #5A164C #5A162A
triadic
#5A164C #4C5A16 #164C5A
tetradic
#5A164C #5A4616 #165A24 #162A5A
square
#5A164C #5A4616 #165A24 #162A5A
split-complementary
#5A164C #2A5A16 #165A46
monochromatic
#190615 #290A22 #5A164C #8B2276 #BC2E9F

Accessibility & contrast

On white

12.70
#5A164C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A164C
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A164C#FFFFFF#000000##FFFFFF
##5A164C1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182C4E
Deuteranopia (green-blind)
#2F364A
Tritanopia (blue-blind)
#5F1A2F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a164c;
/* rgb */ color: rgb(90, 22, 76);
/* oklch */ color: oklch(33.5% 0.118 337.3);
Tailwind
colors: {
  custom: {
    50: '#8b5a7e',
    500: '#5a164c',
    950: '#000000',
  },
}
SCSS
$custom: #5a164c;
$custom-light: #8b5a7e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a164c",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 76
  },
  "hsl": {
    "h": 312.353,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33537,
    "c": 0.1183,
    "h": 337.3
  },
  "luminance": 0.03269
}

Semantic roles & 50–950 ramp

primary
#5A164C
secondary
#3B914C
accent
#E46544
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A164C

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

Preview Lab → · Contrast checker → · Palette generator →

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