#5A164F#5A164F

#5A164F is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.7% C 0.121 H 335.2°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#5A164F
RGBrgb(90, 22, 79)
HSLhsl(310, 61%, 22%)
HSVhsv(310, 76%, 35%)
CMYKcmyk(0%, 75.6%, 12.2%, 64.7%)
CIE-LABlab(21.25, 37.56, -18.56)
CIE-LCHlch(21.25, 41.89, 333.70°)
OKLaboklab(33.71% 0.1096 -0.0506)
OKLCHoklch(33.71% 0.121 335.2)
XYZxyz(5.9147, 3.3125, 7.7235)
Luminance0.0331 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A164F #165A21
analogous
#43165A #5A164F #5A162D
triadic
#5A164F #4F5A16 #164F5A
tetradic
#5A164F #5A4316 #165A21 #162D5A
square
#5A164F #5A4316 #165A21 #162D5A
split-complementary
#5A164F #2D5A16 #165A43
monochromatic
#190616 #290A24 #5A164F #8B227A #BC2EA5

Accessibility & contrast

On white

12.63
#5A164F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A164F
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A164F#FFFFFF#000000##FFFFFF
##5A164F1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162D51
Deuteranopia (green-blind)
#2D374D
Tritanopia (blue-blind)
#5F1B30
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a164f;
/* rgb */ color: rgb(90, 22, 79);
/* oklch */ color: oklch(33.7% 0.121 335.2);
Tailwind
colors: {
  custom: {
    50: '#8b5a80',
    500: '#5a164f',
    950: '#000000',
  },
}
SCSS
$custom: #5a164f;
$custom-light: #8b5a80;
$custom-dark: #000000;
JSON
{
  "hex": "#5a164f",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 79
  },
  "hsl": {
    "h": 309.706,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33706,
    "c": 0.12071,
    "h": 335.2
  },
  "luminance": 0.03312
}

Semantic roles & 50–950 ramp

primary
#5A164F
secondary
#3B9149
accent
#E45E44
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A164F

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

Preview Lab → · Contrast checker → · Palette generator →

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