#5A32B3#5A32B3

#5A32B3 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.7% C 0.191 H 290.8°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#5A32B3
RGBrgb(90, 50, 179)
HSLhsl(259, 56%, 45%)
HSVhsv(259, 72%, 70%)
CMYKcmyk(49.7%, 72.1%, 0%, 29.8%)
CIE-LABlab(33.37, 48.02, -62.09)
CIE-LCHlch(33.37, 78.49, 307.72°)
OKLaboklab(44.69% 0.0677 -0.1782)
OKLCHoklch(44.69% 0.191 290.8)
XYZxyz(13.4914, 7.7090, 43.4162)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A32B3 #8BB332
analogous
#324AB3 #5A32B3 #9B32B3
triadic
#5A32B3 #B35A32 #32B35A
tetradic
#5A32B3 #B3324A #8BB332 #32B39B
square
#5A32B3 #B3324A #8BB332 #32B39B
split-complementary
#5A32B3 #B39B32 #4AB332
monochromatic
#2A1753 #422583 #5A32B3 #7A53CF #9F83DC

Accessibility & contrast

On white

8.26
#5A32B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5A32B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A32B3
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A32B3#FFFFFF#000000##FFFFFF
##5A32B31.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B7
Deuteranopia (green-blind)
#004CB1
Tritanopia (blue-blind)
#3C546F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a32b3;
/* rgb */ color: rgb(90, 50, 179);
/* oklch */ color: oklch(44.7% 0.191 290.8);
Tailwind
colors: {
  custom: {
    50: '#916ecb',
    500: '#5a32b3',
    950: '#000000',
  },
}
SCSS
$custom: #5a32b3;
$custom-light: #916ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a32b3",
  "rgb": {
    "r": 90,
    "g": 50,
    "b": 179
  },
  "hsl": {
    "h": 258.605,
    "s": 56.332,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44686,
    "c": 0.1906,
    "h": 290.8
  },
  "luminance": 0.0771
}

Semantic roles & 50–950 ramp

primary
#5A32B3
secondary
#AFC67B
accent
#E048B1
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A32B3

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

Preview Lab → · Contrast checker → · Palette generator →

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