#5A1771#5A1771

#5A1771 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.150 H 315.6°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#5A1771
RGBrgb(90, 23, 113)
HSLhsl(285, 66%, 27%)
HSVhsv(285, 80%, 44%)
CMYKcmyk(20.4%, 79.6%, 0%, 55.7%)
CIE-LABlab(23.60, 43.79, -37.24)
CIE-LCHlch(23.60, 57.49, 319.62°)
OKLaboklab(36.09% 0.1074 -0.105)
OKLCHoklch(36.09% 0.15 315.6)
XYZxyz(7.5030, 3.9790, 15.9924)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1771 #2E7117
analogous
#2D1771 #5A1771 #71175B
triadic
#5A1771 #715A17 #17715A
tetradic
#5A1771 #712D17 #2E7117 #175B71
square
#5A1771 #712D17 #2E7117 #175B71
split-complementary
#5A1771 #5B7117 #17712D
monochromatic
#140519 #320D3E #5A1771 #8321A4 #AA2ED4

Accessibility & contrast

On white

11.69
#5A1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5A1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1771
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1771#FFFFFF#000000##FFFFFF
##5A17711.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#153A6F
Tritanopia (blue-blind)
#582B43
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a1771;
/* rgb */ color: rgb(90, 23, 113);
/* oklch */ color: oklch(36.1% 0.150 315.6);
Tailwind
colors: {
  custom: {
    50: '#8c5c9a',
    500: '#5a1771',
    950: '#000000',
  },
}
SCSS
$custom: #5a1771;
$custom-light: #8c5c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1771",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 284.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36093,
    "c": 0.15022,
    "h": 315.6
  },
  "luminance": 0.03979
}

Semantic roles & 50–950 ramp

primary
#5A1771
secondary
#58A73D
accent
#E93F6A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A1771

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

Preview Lab → · Contrast checker → · Palette generator →

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