#5A1586#5A1586

#5A1586 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.172 H 307.2°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#5A1586
RGBrgb(90, 21, 134)
HSLhsl(277, 73%, 30%)
HSVhsv(277, 84%, 53%)
CMYKcmyk(32.8%, 84.3%, 0%, 47.5%)
CIE-LABlab(25.05, 49.15, -48.24)
CIE-LCHlch(25.05, 68.86, 315.54°)
OKLaboklab(37.64% 0.1042 -0.1373)
OKLCHoklch(37.64% 0.172 307.2)
XYZxyz(8.7868, 4.4313, 22.9421)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1586 #418615
analogous
#211586 #5A1586 #861579
triadic
#5A1586 #865A15 #15865A
tetradic
#5A1586 #862115 #418615 #157986
square
#5A1586 #862115 #418615 #157986
split-complementary
#5A1586 #798615 #158621
monochromatic
#13041C #360D51 #5A1586 #7E1DBB #9D36DF

Accessibility & contrast

On white

11.13
#5A1586 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5A1586 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1586
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1586#FFFFFF#000000##FFFFFF
##5A15861.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003C84
Tritanopia (blue-blind)
#52344F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5a1586;
/* rgb */ color: rgb(90, 21, 134);
/* oklch */ color: oklch(37.6% 0.172 307.2);
Tailwind
colors: {
  custom: {
    50: '#8e5daa',
    500: '#5a1586',
    950: '#000000',
  },
}
SCSS
$custom: #5a1586;
$custom-light: #8e5daa;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1586",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 134
  },
  "hsl": {
    "h": 276.637,
    "s": 72.903,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37638,
    "c": 0.17238,
    "h": 307.2
  },
  "luminance": 0.04431
}

Semantic roles & 50–950 ramp

primary
#5A1586
secondary
#6DBA3C
accent
#F03880
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1586

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

Preview Lab → · Contrast checker → · Palette generator →

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