#5A1471#5A1471

#5A1471 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.8% C 0.153 H 315.9°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#5A1471
RGBrgb(90, 20, 113)
HSLhsl(285, 70%, 26%)
HSVhsv(285, 82%, 44%)
CMYKcmyk(20.4%, 82.3%, 0%, 55.7%)
CIE-LABlab(23.23, 44.88, -37.85)
CIE-LCHlch(23.23, 58.71, 319.85°)
OKLaboklab(35.83% 0.1102 -0.1068)
OKLCHoklch(35.83% 0.153 315.9)
XYZxyz(7.4468, 3.8665, 15.9736)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1471 #2B7114
analogous
#2B1471 #5A1471 #711459
triadic
#5A1471 #715A14 #14715A
tetradic
#5A1471 #712B14 #2B7114 #145971
square
#5A1471 #712B14 #2B7114 #145971
split-complementary
#5A1471 #597114 #14712B
monochromatic
#15051A #310B3D #5A1471 #831DA5 #AD27D9

Accessibility & contrast

On white

11.84
#5A1471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5A1471 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1471
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1471#FFFFFF#000000##FFFFFF
##5A14711.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#12396F
Tritanopia (blue-blind)
#582A43
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a1471;
/* rgb */ color: rgb(90, 20, 113);
/* oklch */ color: oklch(35.8% 0.153 315.9);
Tailwind
colors: {
  custom: {
    50: '#8c5b9a',
    500: '#5a1471',
    950: '#000000',
  },
}
SCSS
$custom: #5a1471;
$custom-light: #8c5b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1471",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 113
  },
  "hsl": {
    "h": 285.161,
    "s": 69.925,
    "l": 26.078
  },
  "oklch": {
    "l": 0.35828,
    "c": 0.15343,
    "h": 315.9
  },
  "luminance": 0.03866
}

Semantic roles & 50–950 ramp

primary
#5A1471
secondary
#55A739
accent
#ED3B67
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A1471

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

Preview Lab → · Contrast checker → · Palette generator →

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