#5A32B5#5A32B5

#5A32B5 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.9% C 0.193 H 290.4°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#5A32B5
RGBrgb(90, 50, 181)
HSLhsl(258, 57%, 45%)
HSVhsv(258, 72%, 71%)
CMYKcmyk(50.3%, 72.4%, 0%, 29%)
CIE-LABlab(33.54, 48.58, -62.99)
CIE-LCHlch(33.54, 79.55, 307.64°)
OKLaboklab(44.86% 0.0673 -0.1808)
OKLCHoklch(44.86% 0.193 290.4)
XYZxyz(13.6952, 7.7905, 44.4892)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A32B5 #8DB532
analogous
#324BB5 #5A32B5 #9C32B5
triadic
#5A32B5 #B55A32 #32B55A
tetradic
#5A32B5 #B5324B #8DB532 #32B59C
square
#5A32B5 #B5324B #8DB532 #32B59C
split-complementary
#5A32B5 #B59C32 #4BB532
monochromatic
#2A1855 #422585 #5A32B5 #7A54D0 #9F84DD

Accessibility & contrast

On white

8.21
#5A32B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5A32B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A32B5
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A32B5#FFFFFF#000000##FFFFFF
##5A32B51.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B9
Deuteranopia (green-blind)
#004CB2
Tritanopia (blue-blind)
#3B5570
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a32b5;
/* rgb */ color: rgb(90, 50, 181);
/* oklch */ color: oklch(44.9% 0.193 290.4);
Tailwind
colors: {
  custom: {
    50: '#916ecc',
    500: '#5a32b5',
    950: '#000000',
  },
}
SCSS
$custom: #5a32b5;
$custom-light: #916ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a32b5",
  "rgb": {
    "r": 90,
    "g": 50,
    "b": 181
  },
  "hsl": {
    "h": 258.321,
    "s": 56.71,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44862,
    "c": 0.19293,
    "h": 290.4
  },
  "luminance": 0.07791
}

Semantic roles & 50–950 ramp

primary
#5A32B5
secondary
#B0C77C
accent
#E048B2
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A32B5

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

Preview Lab → · Contrast checker → · Palette generator →

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