#5A1879#5A1879

#5A1879 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.157 H 312.0°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#5A1879
RGBrgb(90, 24, 121)
HSLhsl(281, 67%, 28%)
HSVhsv(281, 80%, 47%)
CMYKcmyk(25.6%, 80.2%, 0%, 52.5%)
CIE-LABlab(24.35, 45.16, -41.16)
CIE-LCHlch(24.35, 61.10, 317.65°)
OKLaboklab(36.81% 0.105 -0.1165)
OKLCHoklch(36.81% 0.157 312)
XYZxyz(7.9936, 4.2076, 18.4765)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1879 #377918
analogous
#291879 #5A1879 #791867
triadic
#5A1879 #795A18 #18795A
tetradic
#5A1879 #792918 #377918 #186779
square
#5A1879 #792918 #377918 #186779
split-complementary
#5A1879 #677918 #187929
monochromatic
#13051A #340E46 #5A1879 #8022AC #A335D7

Accessibility & contrast

On white

11.40
#5A1879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5A1879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1879
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1879#FFFFFF#000000##FFFFFF
##5A18791.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#063B77
Tritanopia (blue-blind)
#562F48
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5a1879;
/* rgb */ color: rgb(90, 24, 121);
/* oklch */ color: oklch(36.8% 0.157 312.0);
Tailwind
colors: {
  custom: {
    50: '#8d5da0',
    500: '#5a1879',
    950: '#000000',
  },
}
SCSS
$custom: #5a1879;
$custom-light: #8d5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1879",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 280.825,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36812,
    "c": 0.15686,
    "h": 312
  },
  "luminance": 0.04207
}

Semantic roles & 50–950 ramp

primary
#5A1879
secondary
#62AE3F
accent
#EA3E75
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050F
muted
#7D797E

Preview Lab

Preview with #5A1879

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

Preview Lab → · Contrast checker → · Palette generator →

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