#5B32AA#5B32AA

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

Color values

HEX#5B32AA
RGBrgb(91, 50, 170)
HSLhsl(261, 55%, 43%)
HSVhsv(261, 71%, 67%)
CMYKcmyk(46.5%, 70.6%, 0%, 33.3%)
CIE-LABlab(32.72, 45.69, -57.78)
CIE-LCHlch(32.72, 73.66, 308.34°)
OKLaboklab(44.01% 0.0709 -0.1655)
OKLCHoklch(44.01% 0.18 293.2)
XYZxyz(12.7087, 7.4072, 38.7826)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B32AA #81AA32
analogous
#3245AA #5B32AA #9732AA
triadic
#5B32AA #AA5B32 #32AA5B
tetradic
#5B32AA #AA3245 #81AA32 #32AA97
square
#5B32AA #AA3245 #81AA32 #32AA97
split-complementary
#5B32AA #AA9732 #45AA32
monochromatic
#28164B #42247B #5B32AA #794ECB #9D7DD9

Accessibility & contrast

On white

8.46
#5B32AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5B32AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B32AA
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B32AA#FFFFFF#000000##FFFFFF
##5B32AA1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b32aa;
/* rgb */ color: rgb(91, 50, 170);
/* oklch */ color: oklch(44.0% 0.180 293.2);
Tailwind
colors: {
  custom: {
    50: '#916dc4',
    500: '#5b32aa',
    950: '#000000',
  },
}
SCSS
$custom: #5b32aa;
$custom-light: #916dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b32aa",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 170
  },
  "hsl": {
    "h": 260.5,
    "s": 54.545,
    "l": 43.137
  },
  "oklch": {
    "l": 0.44011,
    "c": 0.18005,
    "h": 293.2
  },
  "luminance": 0.07408
}

Semantic roles & 50–950 ramp

primary
#5B32AA
secondary
#A8C276
accent
#DE4AAB
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5B32AA

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

Preview Lab → · Contrast checker → · Palette generator →

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