#5A1778#5A1778

#5A1778 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.6% C 0.157 H 312.5°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#5A1778
RGBrgb(90, 23, 120)
HSLhsl(281, 68%, 28%)
HSVhsv(281, 81%, 47%)
CMYKcmyk(25%, 80.8%, 0%, 52.9%)
CIE-LABlab(24.14, 45.31, -40.86)
CIE-LCHlch(24.14, 61.02, 317.95°)
OKLaboklab(36.64% 0.1061 -0.1156)
OKLCHoklch(36.64% 0.157 312.5)
XYZxyz(7.9124, 4.1428, 18.1485)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1778 #357817
analogous
#291778 #5A1778 #781765
triadic
#5A1778 #785A17 #17785A
tetradic
#5A1778 #782917 #357817 #176578
square
#5A1778 #782917 #357817 #176578
split-complementary
#5A1778 #657817 #177829
monochromatic
#13051A #330D45 #5A1778 #8121AB #A432D8

Accessibility & contrast

On white

11.48
#5A1778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1778
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1778#FFFFFF#000000##FFFFFF
##5A17781.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#073B76
Tritanopia (blue-blind)
#562E47
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a1778;
/* rgb */ color: rgb(90, 23, 120);
/* oklch */ color: oklch(36.6% 0.157 312.5);
Tailwind
colors: {
  custom: {
    50: '#8d5da0',
    500: '#5a1778',
    950: '#000000',
  },
}
SCSS
$custom: #5a1778;
$custom-light: #8d5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1778",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 281.443,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3664,
    "c": 0.15696,
    "h": 312.5
  },
  "luminance": 0.04143
}

Semantic roles & 50–950 ramp

primary
#5A1778
secondary
#60AD3E
accent
#EB3D73
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050F
muted
#7D797E

Preview Lab

Preview with #5A1778

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

Preview Lab → · Contrast checker → · Palette generator →

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