#5A1584#5A1584

#5A1584 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.170 H 307.9°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#5A1584
RGBrgb(90, 21, 132)
HSLhsl(277, 73%, 30%)
HSVhsv(277, 84%, 52%)
CMYKcmyk(31.8%, 84.1%, 0%, 48.2%)
CIE-LABlab(24.88, 48.69, -47.26)
CIE-LCHlch(24.88, 67.86, 315.86°)
OKLaboklab(37.46% 0.1048 -0.1344)
OKLCHoklch(37.46% 0.17 307.9)
XYZxyz(8.6486, 4.3761, 22.2144)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1584 #3F8415
analogous
#221584 #5A1584 #841577
triadic
#5A1584 #845A15 #15845A
tetradic
#5A1584 #842215 #3F8415 #157784
square
#5A1584 #842215 #3F8415 #157784
split-complementary
#5A1584 #778415 #158422
monochromatic
#12041A #360D4F #5A1584 #7E1DB9 #9E35DF

Accessibility & contrast

On white

11.20
#5A1584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5A1584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1584
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1584#FFFFFF#000000##FFFFFF
##5A15841.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003C82
Tritanopia (blue-blind)
#53334E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5a1584;
/* rgb */ color: rgb(90, 21, 132);
/* oklch */ color: oklch(37.5% 0.170 307.9);
Tailwind
colors: {
  custom: {
    50: '#8e5da9',
    500: '#5a1584',
    950: '#000000',
  },
}
SCSS
$custom: #5a1584;
$custom-light: #8e5da9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1584",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 132
  },
  "hsl": {
    "h": 277.297,
    "s": 72.549,
    "l": 30
  },
  "oklch": {
    "l": 0.37465,
    "c": 0.17046,
    "h": 307.9
  },
  "luminance": 0.04376
}

Semantic roles & 50–950 ramp

primary
#5A1584
secondary
#6BB93C
accent
#EF397E
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1584

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

Preview Lab → · Contrast checker → · Palette generator →

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