#5A2AAA#5A2AAA

#5A2AAA is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.189 H 294.0°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#5A2AAA
RGBrgb(90, 42, 170)
HSLhsl(263, 60%, 42%)
HSVhsv(263, 75%, 67%)
CMYKcmyk(47.1%, 75.3%, 0%, 33.3%)
CIE-LABlab(31.19, 49.50, -60.28)
CIE-LCHlch(31.19, 78.00, 309.39°)
OKLaboklab(42.9% 0.0768 -0.1728)
OKLCHoklch(42.9% 0.189 294)
XYZxyz(12.2981, 6.7315, 38.6738)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2AAA #7AAA2A
analogous
#2A3AAA #5A2AAA #9A2AAA
triadic
#5A2AAA #AA5A2A #2AAA5A
tetradic
#5A2AAA #AA2A3A #7AAA2A #2AAA9A
square
#5A2AAA #AA2A3A #7AAA2A #2AAA9A
split-complementary
#5A2AAA #AA9A2A #3AAA2A
monochromatic
#261248 #401E79 #5A2AAA #7741D0 #9A72DC

Accessibility & contrast

On white

8.95
#5A2AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5A2AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2AAA
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2AAA#FFFFFF#000000##FFFFFF
##5A2AAA1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0047A8
Tritanopia (blue-blind)
#424C68
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a2aaa;
/* rgb */ color: rgb(90, 42, 170);
/* oklch */ color: oklch(42.9% 0.189 294.0);
Tailwind
colors: {
  custom: {
    50: '#9069c4',
    500: '#5a2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #5a2aaa;
$custom-light: #9069c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2aaa",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 262.5,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42903,
    "c": 0.18913,
    "h": 294
  },
  "luminance": 0.06732
}

Semantic roles & 50–950 ramp

primary
#5A2AAA
secondary
#A3C36C
accent
#E444A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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