#5A165B#5A165B

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

Color values

HEX#5A165B
RGBrgb(90, 22, 91)
HSLhsl(299, 61%, 22%)
HSVhsv(299, 76%, 36%)
CMYKcmyk(1.1%, 75.8%, 0%, 64.3%)
CIE-LABlab(21.96, 39.72, -25.50)
CIE-LCHlch(21.96, 47.20, 327.31°)
OKLaboklab(34.44% 0.1103 -0.0707)
OKLCHoklch(34.44% 0.131 327.3)
XYZxyz(6.3916, 3.5033, 10.2351)
Luminance0.0350 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A165B #175B16
analogous
#37165B #5A165B #5B163A
triadic
#5A165B #5B5A16 #165B5A
tetradic
#5A165B #5B3716 #175B16 #163A5B
square
#5A165B #5B3716 #175B16 #163A5B
split-complementary
#5A165B #3A5B16 #165B37
monochromatic
#180619 #290A2A #5A165B #8B228C #BB2EBE

Accessibility & contrast

On white

12.35
#5A165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A165B
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A165B#FFFFFF#000000##FFFFFF
##5A165B1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092F5D
Deuteranopia (green-blind)
#273859
Tritanopia (blue-blind)
#5D2137
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a165b;
/* rgb */ color: rgb(90, 22, 91);
/* oklch */ color: oklch(34.4% 0.131 327.3);
Tailwind
colors: {
  custom: {
    50: '#8b5b8a',
    500: '#5a165b',
    950: '#000000',
  },
}
SCSS
$custom: #5a165b;
$custom-light: #8b5b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a165b",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 299.13,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34439,
    "c": 0.13098,
    "h": 327.3
  },
  "luminance": 0.03503
}

Semantic roles & 50–950 ramp

primary
#5A165B
secondary
#3C923B
accent
#E44446
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A165B

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

Preview Lab → · Contrast checker → · Palette generator →

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