#5A165A#5A165A

#5A165A is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.4% C 0.130 H 328.0°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#5A165A
RGBrgb(90, 22, 90)
HSLhsl(300, 61%, 22%)
HSVhsv(300, 76%, 35%)
CMYKcmyk(0%, 75.6%, 0%, 64.7%)
CIE-LABlab(21.89, 39.53, -24.93)
CIE-LCHlch(21.89, 46.74, 327.77°)
OKLaboklab(34.38% 0.1103 -0.069)
OKLCHoklch(34.38% 0.13 328)
XYZxyz(6.3487, 3.4861, 10.0094)
Luminance0.0349 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A165A #165A16
analogous
#38165A #5A165A #5A1638
triadic
#5A165A #5A5A16 #165A5A
tetradic
#5A165A #5A3816 #165A16 #16385A
square
#5A165A #5A3816 #165A16 #16385A
split-complementary
#5A165A #385A16 #165A38
monochromatic
#190619 #290A29 #5A165A #8B228B #BC2EBC

Accessibility & contrast

On white

12.37
#5A165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5A165A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A165A
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A165A#FFFFFF#000000##FFFFFF
##5A165A1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2F5C
Deuteranopia (green-blind)
#283858
Tritanopia (blue-blind)
#5D2036
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a165a;
/* rgb */ color: rgb(90, 22, 90);
/* oklch */ color: oklch(34.4% 0.130 328.0);
Tailwind
colors: {
  custom: {
    50: '#8b5b89',
    500: '#5a165a',
    950: '#000000',
  },
}
SCSS
$custom: #5a165a;
$custom-light: #8b5b89;
$custom-dark: #000000;
JSON
{
  "hex": "#5a165a",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 300,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34375,
    "c": 0.13009,
    "h": 328
  },
  "luminance": 0.03486
}

Semantic roles & 50–950 ramp

primary
#5A165A
secondary
#3B913B
accent
#E44444
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A165A

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

Preview Lab → · Contrast checker → · Palette generator →

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