#5A3AA2#5A3AA2

#5A3AA2 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.4% C 0.160 H 292.9°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#5A3AA2
RGBrgb(90, 58, 162)
HSLhsl(258, 47%, 43%)
HSVhsv(258, 64%, 64%)
CMYKcmyk(44.4%, 64.2%, 0%, 36.5%)
CIE-LABlab(33.58, 38.85, -51.57)
CIE-LCHlch(33.58, 64.57, 306.99°)
OKLaboklab(44.41% 0.0622 -0.1473)
OKLCHoklch(44.41% 0.16 292.9)
XYZxyz(12.2493, 7.8080, 35.0371)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3AA2 #82A23A
analogous
#3A4EA2 #5A3AA2 #8E3AA2
triadic
#5A3AA2 #A25A3A #3AA25A
tetradic
#5A3AA2 #A23A4E #82A23A #3AA28E
square
#5A3AA2 #A23A4E #82A23A #3AA28E
split-complementary
#5A3AA2 #A28E3A #4EA23A
monochromatic
#281A48 #412A75 #5A3AA2 #7857C3 #9C84D3

Accessibility & contrast

On white

8.20
#5A3AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5A3AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3AA2
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3AA2#FFFFFF#000000##FFFFFF
##5A3AA21.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#004DA0
Tritanopia (blue-blind)
#465268
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a3aa2;
/* rgb */ color: rgb(90, 58, 162);
/* oklch */ color: oklch(44.4% 0.160 292.9);
Tailwind
colors: {
  custom: {
    50: '#8e72be',
    500: '#5a3aa2',
    950: '#000000',
  },
}
SCSS
$custom: #5a3aa2;
$custom-light: #8e72be;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3aa2",
  "rgb": {
    "r": 90,
    "g": 58,
    "b": 162
  },
  "hsl": {
    "h": 258.462,
    "s": 47.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.44409,
    "c": 0.1599,
    "h": 292.9
  },
  "luminance": 0.07808
}

Semantic roles & 50–950 ramp

primary
#5A3AA2
secondary
#A9BD7B
accent
#D751AE
background
#F9F7FB
surface
#F1EDF7
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5A3AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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