#5A3AA4#5A3AA4

#5A3AA4 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.6% C 0.162 H 292.4°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#5A3AA4
RGBrgb(90, 58, 164)
HSLhsl(258, 48%, 44%)
HSVhsv(258, 65%, 64%)
CMYKcmyk(45.1%, 64.6%, 0%, 35.7%)
CIE-LABlab(33.73, 39.43, -52.53)
CIE-LCHlch(33.73, 65.68, 306.89°)
OKLaboklab(44.57% 0.062 -0.1501)
OKLCHoklch(44.57% 0.162 292.4)
XYZxyz(12.4285, 7.8797, 35.9809)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3AA4 #84A43A
analogous
#3A4FA4 #5A3AA4 #8F3AA4
triadic
#5A3AA4 #A45A3A #3AA45A
tetradic
#5A3AA4 #A43A4F #84A43A #3AA48F
square
#5A3AA4 #A43A4F #84A43A #3AA48F
split-complementary
#5A3AA4 #A48F3A #4FA43A
monochromatic
#281A4A #412A77 #5A3AA4 #7857C4 #9D85D4

Accessibility & contrast

On white

8.15
#5A3AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5A3AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3AA4
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3AA4#FFFFFF#000000##FFFFFF
##5A3AA41.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#004DA2
Tritanopia (blue-blind)
#455369
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a3aa4;
/* rgb */ color: rgb(90, 58, 164);
/* oklch */ color: oklch(44.6% 0.162 292.4);
Tailwind
colors: {
  custom: {
    50: '#8f72c0',
    500: '#5a3aa4',
    950: '#000000',
  },
}
SCSS
$custom: #5a3aa4;
$custom-light: #8f72c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3aa4",
  "rgb": {
    "r": 90,
    "g": 58,
    "b": 164
  },
  "hsl": {
    "h": 258.113,
    "s": 47.748,
    "l": 43.529
  },
  "oklch": {
    "l": 0.44566,
    "c": 0.16243,
    "h": 292.4
  },
  "luminance": 0.0788
}

Semantic roles & 50–950 ramp

primary
#5A3AA4
secondary
#AABE7C
accent
#D750AF
background
#F9F7FB
surface
#F1EDF7
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5A3AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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