#5A2AA1#5A2AA1

#5A2AA1 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.179 H 296.2°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#5A2AA1
RGBrgb(90, 42, 161)
HSLhsl(264, 59%, 40%)
HSVhsv(264, 74%, 63%)
CMYKcmyk(44.1%, 73.9%, 0%, 36.9%)
CIE-LABlab(30.41, 47.10, -56.13)
CIE-LCHlch(30.41, 73.27, 310.00°)
OKLaboklab(42.11% 0.079 -0.1606)
OKLCHoklch(42.11% 0.179 296.2)
XYZxyz(11.4757, 6.4025, 34.3425)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2AA1 #71A12A
analogous
#2A35A1 #5A2AA1 #962AA1
triadic
#5A2AA1 #A15A2A #2AA15A
tetradic
#5A2AA1 #A12A35 #71A12A #2AA196
square
#5A2AA1 #A12A35 #71A12A #2AA196
split-complementary
#5A2AA1 #A1962A #35A12A
monochromatic
#241140 #3F1D70 #5A2AA1 #763CCC #986DD9

Accessibility & contrast

On white

9.21
#5A2AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5A2AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2AA1
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2AA1#FFFFFF#000000##FFFFFF
##5A2AA11.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#00469F
Tritanopia (blue-blind)
#474963
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a2aa1;
/* rgb */ color: rgb(90, 42, 161);
/* oklch */ color: oklch(42.1% 0.179 296.2);
Tailwind
colors: {
  custom: {
    50: '#8f68be',
    500: '#5a2aa1',
    950: '#000000',
  },
}
SCSS
$custom: #5a2aa1;
$custom-light: #8f68be;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2aa1",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 264.202,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42111,
    "c": 0.17901,
    "h": 296.2
  },
  "luminance": 0.06403
}

Semantic roles & 50–950 ramp

primary
#5A2AA1
secondary
#9CC067
accent
#E246A3
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A2AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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