#5A1576#5A1576

#5A1576 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.3% C 0.157 H 313.6°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#5A1576
RGBrgb(90, 21, 118)
HSLhsl(283, 70%, 27%)
HSVhsv(283, 82%, 46%)
CMYKcmyk(23.7%, 82.2%, 0%, 53.7%)
CIE-LABlab(23.73, 45.60, -40.24)
CIE-LCHlch(23.73, 60.82, 318.57°)
OKLaboklab(36.31% 0.1083 -0.1138)
OKLCHoklch(36.31% 0.157 313.6)
XYZxyz(7.7541, 4.0183, 17.5032)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1576 #317615
analogous
#291576 #5A1576 #761562
triadic
#5A1576 #765A15 #15765A
tetradic
#5A1576 #762915 #317615 #156276
square
#5A1576 #762915 #317615 #156276
split-complementary
#5A1576 #627615 #157629
monochromatic
#14051A #320C42 #5A1576 #821EAA #A72CD9

Accessibility & contrast

On white

11.64
#5A1576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1576
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1576#FFFFFF#000000##FFFFFF
##5A15761.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#093A74
Tritanopia (blue-blind)
#572C46
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a1576;
/* rgb */ color: rgb(90, 21, 118);
/* oklch */ color: oklch(36.3% 0.157 313.6);
Tailwind
colors: {
  custom: {
    50: '#8d5c9e',
    500: '#5a1576',
    950: '#000000',
  },
}
SCSS
$custom: #5a1576;
$custom-light: #8d5c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1576",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 118
  },
  "hsl": {
    "h": 282.68,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.36306,
    "c": 0.15711,
    "h": 313.6
  },
  "luminance": 0.04018
}

Semantic roles & 50–950 ramp

primary
#5A1576
secondary
#5CAC3B
accent
#ED3B6E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5A1576

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

Preview Lab → · Contrast checker → · Palette generator →

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