#5A32BB#5A32BB

#5A32BB is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.4% C 0.200 H 289.2°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#5A32BB
RGBrgb(90, 50, 187)
HSLhsl(258, 58%, 46%)
HSVhsv(258, 73%, 73%)
CMYKcmyk(51.9%, 73.3%, 0%, 26.7%)
CIE-LABlab(34.07, 50.26, -65.68)
CIE-LCHlch(34.07, 82.70, 307.43°)
OKLaboklab(45.4% 0.0659 -0.1887)
OKLCHoklch(45.4% 0.2 289.2)
XYZxyz(14.3241, 8.0421, 47.8016)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A32BB #93BB32
analogous
#324FBB #5A32BB #9F32BB
triadic
#5A32BB #BB5A32 #32BB5A
tetradic
#5A32BB #BB324F #93BB32 #32BB9F
square
#5A32BB #BB324F #93BB32 #32BB9F
split-complementary
#5A32BB #BB9F32 #4FBB32
monochromatic
#2C185A #43258B #5A32BB #7C58D2 #A288DF

Accessibility & contrast

On white

8.05
#5A32BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5A32BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A32BB
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A32BB#FFFFFF#000000##FFFFFF
##5A32BB1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BF
Deuteranopia (green-blind)
#004DB8
Tritanopia (blue-blind)
#365774
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a32bb;
/* rgb */ color: rgb(90, 50, 187);
/* oklch */ color: oklch(45.4% 0.200 289.2);
Tailwind
colors: {
  custom: {
    50: '#926ed1',
    500: '#5a32bb',
    950: '#000000',
  },
}
SCSS
$custom: #5a32bb;
$custom-light: #926ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a32bb",
  "rgb": {
    "r": 90,
    "g": 50,
    "b": 187
  },
  "hsl": {
    "h": 257.518,
    "s": 57.806,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45398,
    "c": 0.19989,
    "h": 289.2
  },
  "luminance": 0.08043
}

Semantic roles & 50–950 ramp

primary
#5A32BB
secondary
#B4C980
accent
#E147B4
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A32BB

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

Preview Lab → · Contrast checker → · Palette generator →

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