#5A1784#5A1784

#5A1784 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.169 H 307.8°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#5A1784
RGBrgb(90, 23, 132)
HSLhsl(277, 70%, 30%)
HSVhsv(277, 83%, 52%)
CMYKcmyk(31.8%, 82.6%, 0%, 48.2%)
CIE-LABlab(25.11, 48.01, -46.88)
CIE-LCHlch(25.11, 67.10, 315.68°)
OKLaboklab(37.63% 0.1032 -0.1333)
OKLCHoklch(37.63% 0.169 307.8)
XYZxyz(8.6868, 4.4525, 22.2271)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1784 #418417
analogous
#241784 #5A1784 #841777
triadic
#5A1784 #845A17 #17845A
tetradic
#5A1784 #842417 #418417 #177784
square
#5A1784 #842417 #418417 #177784
split-complementary
#5A1784 #778417 #178424
monochromatic
#13051C #360E50 #5A1784 #7E20B8 #9D39DC

Accessibility & contrast

On white

11.11
#5A1784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1784
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1784#FFFFFF#000000##FFFFFF
##5A17841.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a1784;
/* rgb */ color: rgb(90, 23, 132);
/* oklch */ color: oklch(37.6% 0.169 307.8);
Tailwind
colors: {
  custom: {
    50: '#8d5da9',
    500: '#5a1784',
    950: '#000000',
  },
}
SCSS
$custom: #5a1784;
$custom-light: #8d5da9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1784",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 276.881,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3763,
    "c": 0.16861,
    "h": 307.8
  },
  "luminance": 0.04452
}

Semantic roles & 50–950 ramp

primary
#5A1784
secondary
#6DB83F
accent
#ED3B7F
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1784

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

Preview Lab → · Contrast checker → · Palette generator →

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