#5A1578#5A1578

#5A1578 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.5% C 0.159 H 312.7°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#5A1578
RGBrgb(90, 21, 120)
HSLhsl(282, 70%, 28%)
HSVhsv(282, 83%, 47%)
CMYKcmyk(25%, 82.5%, 0%, 52.9%)
CIE-LABlab(23.89, 46.03, -41.27)
CIE-LCHlch(23.89, 61.82, 318.12°)
OKLaboklab(36.47% 0.1079 -0.1168)
OKLCHoklch(36.47% 0.159 312.7)
XYZxyz(7.8742, 4.0663, 18.1357)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1578 #337815
analogous
#281578 #5A1578 #781565
triadic
#5A1578 #785A15 #15785A
tetradic
#5A1578 #782815 #337815 #156578
square
#5A1578 #782815 #337815 #156578
split-complementary
#5A1578 #657815 #157828
monochromatic
#14051A #330C44 #5A1578 #811EAC #A62DDA

Accessibility & contrast

On white

11.58
#5A1578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5A1578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1578
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1578#FFFFFF#000000##FFFFFF
##5A15781.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#043A76
Tritanopia (blue-blind)
#572D47
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a1578;
/* rgb */ color: rgb(90, 21, 120);
/* oklch */ color: oklch(36.5% 0.159 312.7);
Tailwind
colors: {
  custom: {
    50: '#8d5ca0',
    500: '#5a1578',
    950: '#000000',
  },
}
SCSS
$custom: #5a1578;
$custom-light: #8d5ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1578",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 281.818,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.36466,
    "c": 0.15901,
    "h": 312.7
  },
  "luminance": 0.04066
}

Semantic roles & 50–950 ramp

primary
#5A1578
secondary
#5EAE3B
accent
#ED3B71
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040F
muted
#7D797E

Preview Lab

Preview with #5A1578

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

Preview Lab → · Contrast checker → · Palette generator →

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