#5A1589#5A1589

#5A1589 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.175 H 306.1°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#5A1589
RGBrgb(90, 21, 137)
HSLhsl(276, 73%, 31%)
HSVhsv(276, 85%, 54%)
CMYKcmyk(34.3%, 84.7%, 0%, 46.3%)
CIE-LABlab(25.31, 49.83, -49.69)
CIE-LCHlch(25.31, 70.37, 315.08°)
OKLaboklab(37.9% 0.1033 -0.1416)
OKLCHoklch(37.9% 0.175 306.1)
XYZxyz(8.9990, 4.5162, 24.0597)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1589 #448915
analogous
#201589 #5A1589 #89157E
triadic
#5A1589 #895A15 #15895A
tetradic
#5A1589 #892015 #448915 #157E89
square
#5A1589 #892015 #448915 #157E89
split-complementary
#5A1589 #7E8915 #158920
monochromatic
#14051F #370D54 #5A1589 #7D1DBE #9C38E0

Accessibility & contrast

On white

11.03
#5A1589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5A1589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1589
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1589#FFFFFF#000000##FFFFFF
##5A15891.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003C87
Tritanopia (blue-blind)
#513551
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a1589;
/* rgb */ color: rgb(90, 21, 137);
/* oklch */ color: oklch(37.9% 0.175 306.1);
Tailwind
colors: {
  custom: {
    50: '#8e5dac',
    500: '#5a1589',
    950: '#000000',
  },
}
SCSS
$custom: #5a1589;
$custom-light: #8e5dac;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1589",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 137
  },
  "hsl": {
    "h": 275.69,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37899,
    "c": 0.17527,
    "h": 306.1
  },
  "luminance": 0.04516
}

Semantic roles & 50–950 ramp

primary
#5A1589
secondary
#71BD3D
accent
#F03882
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1589

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

Preview Lab → · Contrast checker → · Palette generator →

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