#5A1A79#5A1A79

#5A1A79 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.0% C 0.155 H 311.8°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#5A1A79
RGBrgb(90, 26, 121)
HSLhsl(280, 65%, 29%)
HSVhsv(280, 79%, 47%)
CMYKcmyk(25.6%, 78.5%, 0%, 52.5%)
CIE-LABlab(24.62, 44.38, -40.72)
CIE-LCHlch(24.62, 60.23, 317.46°)
OKLaboklab(37% 0.1031 -0.1153)
OKLCHoklch(37% 0.155 311.8)
XYZxyz(8.0364, 4.2931, 18.4908)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1A79 #39791A
analogous
#2B1A79 #5A1A79 #791A69
triadic
#5A1A79 #795A1A #1A795A
tetradic
#5A1A79 #792B1A #39791A #1A6979
square
#5A1A79 #792B1A #39791A #1A6979
split-complementary
#5A1A79 #69791A #1A792B
monochromatic
#130519 #350F47 #5A1A79 #7F25AB #A239D4

Accessibility & contrast

On white

11.30
#5A1A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5A1A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1A79
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1A79#FFFFFF#000000##FFFFFF
##5A1A791.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#093C77
Tritanopia (blue-blind)
#563049
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5a1a79;
/* rgb */ color: rgb(90, 26, 121);
/* oklch */ color: oklch(37.0% 0.155 311.8);
Tailwind
colors: {
  custom: {
    50: '#8c5ea0',
    500: '#5a1a79',
    950: '#000000',
  },
}
SCSS
$custom: #5a1a79;
$custom-light: #8c5ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1a79",
  "rgb": {
    "r": 90,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 280.421,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37003,
    "c": 0.15466,
    "h": 311.8
  },
  "luminance": 0.04293
}

Semantic roles & 50–950 ramp

primary
#5A1A79
secondary
#65AD41
accent
#E84077
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050F
muted
#7D797E

Preview Lab

Preview with #5A1A79

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

Preview Lab → · Contrast checker → · Palette generator →

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