#5A1779#5A1779

#5A1779 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.7% C 0.158 H 312.1°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#5A1779
RGBrgb(90, 23, 121)
HSLhsl(281, 68%, 28%)
HSVhsv(281, 81%, 47%)
CMYKcmyk(25.6%, 81%, 0%, 52.5%)
CIE-LABlab(24.22, 45.53, -41.37)
CIE-LCHlch(24.22, 61.52, 317.74°)
OKLaboklab(36.72% 0.1059 -0.1171)
OKLCHoklch(36.72% 0.158 312.1)
XYZxyz(7.9734, 4.1672, 18.4698)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1779 #367917
analogous
#291779 #5A1779 #791767
triadic
#5A1779 #795A17 #17795A
tetradic
#5A1779 #792917 #367917 #176779
square
#5A1779 #792917 #367917 #176779
split-complementary
#5A1779 #677917 #177929
monochromatic
#13051A #340D46 #5A1779 #8021AC #A432D8

Accessibility & contrast

On white

11.45
#5A1779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5A1779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1779
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1779#FFFFFF#000000##FFFFFF
##5A17791.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a1779;
/* rgb */ color: rgb(90, 23, 121);
/* oklch */ color: oklch(36.7% 0.158 312.1);
Tailwind
colors: {
  custom: {
    50: '#8d5da0',
    500: '#5a1779',
    950: '#000000',
  },
}
SCSS
$custom: #5a1779;
$custom-light: #8d5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1779",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 281.02,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3672,
    "c": 0.15793,
    "h": 312.1
  },
  "luminance": 0.04167
}

Semantic roles & 50–950 ramp

primary
#5A1779
secondary
#61AE3E
accent
#EB3D74
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050F
muted
#7D797E

Preview Lab

Preview with #5A1779

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

Preview Lab → · Contrast checker → · Palette generator →

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