#5A1884#5A1884

#5A1884 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.168 H 307.7°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#5A1884
RGBrgb(90, 24, 132)
HSLhsl(277, 69%, 31%)
HSVhsv(277, 82%, 52%)
CMYKcmyk(31.8%, 81.8%, 0%, 48.2%)
CIE-LABlab(25.24, 47.64, -46.67)
CIE-LCHlch(25.24, 66.70, 315.59°)
OKLaboklab(37.72% 0.1024 -0.1327)
OKLCHoklch(37.72% 0.168 307.7)
XYZxyz(8.7071, 4.4930, 22.2339)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1884 #428418
analogous
#241884 #5A1884 #841878
triadic
#5A1884 #845A18 #18845A
tetradic
#5A1884 #842418 #428418 #187884
square
#5A1884 #842418 #428418 #187884
split-complementary
#5A1884 #788418 #188424
monochromatic
#13051C #370F50 #5A1884 #7D21B8 #9D3BDB

Accessibility & contrast

On white

11.06
#5A1884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5A1884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1884
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1884#FFFFFF#000000##FFFFFF
##5A18841.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a1884;
/* rgb */ color: rgb(90, 24, 132);
/* oklch */ color: oklch(37.7% 0.168 307.7);
Tailwind
colors: {
  custom: {
    50: '#8d5ea9',
    500: '#5a1884',
    950: '#000000',
  },
}
SCSS
$custom: #5a1884;
$custom-light: #8d5ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1884",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 276.667,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37717,
    "c": 0.16765,
    "h": 307.7
  },
  "luminance": 0.04493
}

Semantic roles & 50–950 ramp

primary
#5A1884
secondary
#6FB840
accent
#EC3C80
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1884

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

Preview Lab → · Contrast checker → · Palette generator →

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