#5A1479#5A1479

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

Color values

HEX#5A1479
RGBrgb(90, 20, 121)
HSLhsl(282, 72%, 28%)
HSVhsv(282, 83%, 47%)
CMYKcmyk(25.6%, 83.5%, 0%, 52.5%)
CIE-LABlab(23.85, 46.59, -41.97)
CIE-LCHlch(23.85, 62.70, 317.99°)
OKLaboklab(36.46% 0.1085 -0.1189)
OKLCHoklch(36.46% 0.161 312.4)
XYZxyz(7.9172, 4.0547, 18.4510)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1479 #337914
analogous
#271479 #5A1479 #791465
triadic
#5A1479 #795A14 #14795A
tetradic
#5A1479 #792714 #337914 #146579
square
#5A1479 #792714 #337914 #146579
split-complementary
#5A1479 #657914 #147927
monochromatic
#14041A #330B44 #5A1479 #811DAE #A62BDC

Accessibility & contrast

On white

11.60
#5A1479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1479
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1479#FFFFFF#000000##FFFFFF
##5A14791.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#003A77
Tritanopia (blue-blind)
#562D47
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a1479;
/* rgb */ color: rgb(90, 20, 121);
/* oklch */ color: oklch(36.5% 0.161 312.4);
Tailwind
colors: {
  custom: {
    50: '#8d5ca0',
    500: '#5a1479',
    950: '#000000',
  },
}
SCSS
$custom: #5a1479;
$custom-light: #8d5ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1479",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 121
  },
  "hsl": {
    "h": 281.584,
    "s": 71.631,
    "l": 27.647
  },
  "oklch": {
    "l": 0.36464,
    "c": 0.16092,
    "h": 312.4
  },
  "luminance": 0.04054
}

Semantic roles & 50–950 ramp

primary
#5A1479
secondary
#5EAF3A
accent
#EE3971
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040F
muted
#7D797E

Preview Lab

Preview with #5A1479

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

Preview Lab → · Contrast checker → · Palette generator →

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