#5A32BA#5A32BA

#5A32BA is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.3% C 0.199 H 289.4°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#5A32BA
RGBrgb(90, 50, 186)
HSLhsl(258, 58%, 46%)
HSVhsv(258, 73%, 73%)
CMYKcmyk(51.6%, 73.1%, 0%, 27.1%)
CIE-LABlab(33.98, 49.98, -65.23)
CIE-LCHlch(33.98, 82.18, 307.46°)
OKLaboklab(45.31% 0.0661 -0.1874)
OKLCHoklch(45.31% 0.199 289.4)
XYZxyz(14.2174, 7.9994, 47.2398)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A32BA #92BA32
analogous
#324EBA #5A32BA #9E32BA
triadic
#5A32BA #BA5A32 #32BA5A
tetradic
#5A32BA #BA324E #92BA32 #32BA9E
square
#5A32BA #BA324E #92BA32 #32BA9E
split-complementary
#5A32BA #BA9E32 #4EBA32
monochromatic
#2B185A #43258A #5A32BA #7B57D2 #A188DF

Accessibility & contrast

On white

8.08
#5A32BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5A32BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A32BA
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A32BA#FFFFFF#000000##FFFFFF
##5A32BA1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BE
Deuteranopia (green-blind)
#004DB7
Tritanopia (blue-blind)
#375673
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a32ba;
/* rgb */ color: rgb(90, 50, 186);
/* oklch */ color: oklch(45.3% 0.199 289.4);
Tailwind
colors: {
  custom: {
    50: '#926ed0',
    500: '#5a32ba',
    950: '#000000',
  },
}
SCSS
$custom: #5a32ba;
$custom-light: #926ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a32ba",
  "rgb": {
    "r": 90,
    "g": 50,
    "b": 186
  },
  "hsl": {
    "h": 257.647,
    "s": 57.627,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45308,
    "c": 0.19873,
    "h": 289.4
  },
  "luminance": 0.08
}

Semantic roles & 50–950 ramp

primary
#5A32BA
secondary
#B3C97F
accent
#E147B4
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5A32BA

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

Preview Lab → · Contrast checker → · Palette generator →

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