#5A32AA#5A32AA

#5A32AA is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.9% C 0.180 H 292.7°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#5A32AA
RGBrgb(90, 50, 170)
HSLhsl(260, 55%, 43%)
HSVhsv(260, 71%, 67%)
CMYKcmyk(47.1%, 70.6%, 0%, 33.3%)
CIE-LABlab(32.61, 45.51, -57.96)
CIE-LCHlch(32.61, 73.70, 308.14°)
OKLaboklab(43.91% 0.0695 -0.1661)
OKLCHoklch(43.91% 0.18 292.7)
XYZxyz(12.6107, 7.3567, 38.7780)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A32AA #82AA32
analogous
#3246AA #5A32AA #9632AA
triadic
#5A32AA #AA5A32 #32AA5A
tetradic
#5A32AA #AA3246 #82AA32 #32AA96
square
#5A32AA #AA3246 #82AA32 #32AA96
split-complementary
#5A32AA #AA9632 #46AA32
monochromatic
#28164B #41247B #5A32AA #784ECB #9C7DD9

Accessibility & contrast

On white

8.50
#5A32AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5A32AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A32AA
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A32AA#FFFFFF#000000##FFFFFF
##5A32AA1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAE
Deuteranopia (green-blind)
#004AA8
Tritanopia (blue-blind)
#42506A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5a32aa;
/* rgb */ color: rgb(90, 50, 170);
/* oklch */ color: oklch(43.9% 0.180 292.7);
Tailwind
colors: {
  custom: {
    50: '#906dc4',
    500: '#5a32aa',
    950: '#000000',
  },
}
SCSS
$custom: #5a32aa;
$custom-light: #906dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a32aa",
  "rgb": {
    "r": 90,
    "g": 50,
    "b": 170
  },
  "hsl": {
    "h": 260,
    "s": 54.545,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43907,
    "c": 0.18002,
    "h": 292.7
  },
  "luminance": 0.07357
}

Semantic roles & 50–950 ramp

primary
#5A32AA
secondary
#A9C276
accent
#DE4AAD
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5A32AA

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

Preview Lab → · Contrast checker → · Palette generator →

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