#5A1371#5A1371

#5A1371 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.7% C 0.154 H 316.0°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#5A1371
RGBrgb(90, 19, 113)
HSLhsl(285, 71%, 26%)
HSVhsv(285, 83%, 44%)
CMYKcmyk(20.4%, 83.2%, 0%, 55.7%)
CIE-LABlab(23.11, 45.22, -38.04)
CIE-LCHlch(23.11, 59.09, 319.92°)
OKLaboklab(35.74% 0.111 -0.1073)
OKLCHoklch(35.74% 0.154 316)
XYZxyz(7.4295, 3.8320, 15.9679)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1371 #2A7113
analogous
#2B1371 #5A1371 #711359
triadic
#5A1371 #715A13 #13715A
tetradic
#5A1371 #712B13 #2A7113 #135971
square
#5A1371 #712B13 #2A7113 #135971
split-complementary
#5A1371 #597113 #13712B
monochromatic
#15041A #300A3D #5A1371 #841CA5 #AD25DA

Accessibility & contrast

On white

11.89
#5A1371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1371
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1371#FFFFFF#000000##FFFFFF
##5A13711.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#11396F
Tritanopia (blue-blind)
#582942
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a1371;
/* rgb */ color: rgb(90, 19, 113);
/* oklch */ color: oklch(35.7% 0.154 316.0);
Tailwind
colors: {
  custom: {
    50: '#8c5b9a',
    500: '#5a1371',
    950: '#000000',
  },
}
SCSS
$custom: #5a1371;
$custom-light: #8c5b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1371",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 285.319,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.35745,
    "c": 0.15443,
    "h": 316
  },
  "luminance": 0.03832
}

Semantic roles & 50–950 ramp

primary
#5A1371
secondary
#53A838
accent
#EE3A66
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A1371

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

Preview Lab → · Contrast checker → · Palette generator →

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