#5A1571#5A1571

#5A1571 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.9% C 0.152 H 315.8°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#5A1571
RGBrgb(90, 21, 113)
HSLhsl(285, 69%, 26%)
HSVhsv(285, 81%, 44%)
CMYKcmyk(20.4%, 81.4%, 0%, 55.7%)
CIE-LABlab(23.35, 44.53, -37.66)
CIE-LCHlch(23.35, 58.31, 319.78°)
OKLaboklab(35.91% 0.1093 -0.1062)
OKLCHoklch(35.91% 0.152 315.8)
XYZxyz(7.4648, 3.9025, 15.9796)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1571 #2C7115
analogous
#2C1571 #5A1571 #71155A
triadic
#5A1571 #715A15 #15715A
tetradic
#5A1571 #712C15 #2C7115 #155A71
square
#5A1571 #712C15 #2C7115 #155A71
split-complementary
#5A1571 #5A7115 #15712C
monochromatic
#15051A #310B3D #5A1571 #831FA5 #AC29D7

Accessibility & contrast

On white

11.80
#5A1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5A1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1571
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1571#FFFFFF#000000##FFFFFF
##5A15711.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#13396F
Tritanopia (blue-blind)
#582A43
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a1571;
/* rgb */ color: rgb(90, 21, 113);
/* oklch */ color: oklch(35.9% 0.152 315.8);
Tailwind
colors: {
  custom: {
    50: '#8c5c9a',
    500: '#5a1571',
    950: '#000000',
  },
}
SCSS
$custom: #5a1571;
$custom-light: #8c5c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1571",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 285,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.35913,
    "c": 0.15239,
    "h": 315.8
  },
  "luminance": 0.03902
}

Semantic roles & 50–950 ramp

primary
#5A1571
secondary
#56A73B
accent
#EB3C68
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A1571

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

Preview Lab → · Contrast checker → · Palette generator →

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