#5A1573#5A1573

#5A1573 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 36.1% C 0.154 H 314.9°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#5A1573
RGBrgb(90, 21, 115)
HSLhsl(284, 69%, 27%)
HSVhsv(284, 82%, 45%)
CMYKcmyk(21.7%, 81.7%, 0%, 54.9%)
CIE-LABlab(23.50, 44.95, -38.70)
CIE-LCHlch(23.50, 59.31, 319.28°)
OKLaboklab(36.07% 0.1089 -0.1093)
OKLCHoklch(36.07% 0.154 314.9)
XYZxyz(7.5786, 3.9481, 16.5792)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1573 #2E7315
analogous
#2B1573 #5A1573 #73155D
triadic
#5A1573 #735A15 #15735A
tetradic
#5A1573 #732B15 #2E7315 #155D73
square
#5A1573 #732B15 #2E7315 #155D73
split-complementary
#5A1573 #5D7315 #15732B
monochromatic
#14051A #320C3F #5A1573 #831EA7 #AA2AD8

Accessibility & contrast

On white

11.73
#5A1573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5A1573 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1573
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1573#FFFFFF#000000##FFFFFF
##5A15731.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003476
Deuteranopia (green-blind)
#0F3A71
Tritanopia (blue-blind)
#582B44
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a1573;
/* rgb */ color: rgb(90, 21, 115);
/* oklch */ color: oklch(36.1% 0.154 314.9);
Tailwind
colors: {
  custom: {
    50: '#8c5c9c',
    500: '#5a1573',
    950: '#000000',
  },
}
SCSS
$custom: #5a1573;
$custom-light: #8c5c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1573",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 115
  },
  "hsl": {
    "h": 284.043,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36069,
    "c": 0.15427,
    "h": 314.9
  },
  "luminance": 0.03948
}

Semantic roles & 50–950 ramp

primary
#5A1573
secondary
#58A93B
accent
#EC3C6B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A1573

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

Preview Lab → · Contrast checker → · Palette generator →

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