#5A1979#5A1979

#5A1979 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.9% C 0.156 H 311.9°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#5A1979
RGBrgb(90, 25, 121)
HSLhsl(281, 66%, 29%)
HSVhsv(281, 79%, 47%)
CMYKcmyk(25.6%, 79.3%, 0%, 52.5%)
CIE-LABlab(24.48, 44.77, -40.95)
CIE-LCHlch(24.48, 60.67, 317.56°)
OKLaboklab(36.91% 0.1041 -0.1159)
OKLCHoklch(36.91% 0.156 311.9)
XYZxyz(8.0146, 4.2496, 18.4835)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1979 #387919
analogous
#2A1979 #5A1979 #791968
triadic
#5A1979 #795A19 #19795A
tetradic
#5A1979 #792A19 #387919 #196879
square
#5A1979 #792A19 #387919 #196879
split-complementary
#5A1979 #687919 #19792A
monochromatic
#130519 #340F46 #5A1979 #8023AC #A237D6

Accessibility & contrast

On white

11.35
#5A1979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5A1979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1979
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1979#FFFFFF#000000##FFFFFF
##5A19791.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#083B77
Tritanopia (blue-blind)
#563048
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5a1979;
/* rgb */ color: rgb(90, 25, 121);
/* oklch */ color: oklch(36.9% 0.156 311.9);
Tailwind
colors: {
  custom: {
    50: '#8d5ea0',
    500: '#5a1979',
    950: '#000000',
  },
}
SCSS
$custom: #5a1979;
$custom-light: #8d5ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1979",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 280.625,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36906,
    "c": 0.15577,
    "h": 311.9
  },
  "luminance": 0.04249
}

Semantic roles & 50–950 ramp

primary
#5A1979
secondary
#64AE40
accent
#E93F76
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050F
muted
#7D797E

Preview Lab

Preview with #5A1979

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

Preview Lab → · Contrast checker → · Palette generator →

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