#5B32A2#5B32A2

#5B32A2 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.3% C 0.171 H 295.1°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#5B32A2
RGBrgb(91, 50, 162)
HSLhsl(262, 53%, 42%)
HSVhsv(262, 69%, 64%)
CMYKcmyk(43.8%, 69.1%, 0%, 36.5%)
CIE-LABlab(32.06, 43.48, -54.03)
CIE-LCHlch(32.06, 69.35, 308.83°)
OKLaboklab(43.34% 0.0723 -0.1545)
OKLCHoklch(43.34% 0.171 295.1)
XYZxyz(11.9748, 7.1137, 34.9176)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B32A2 #79A232
analogous
#3241A2 #5B32A2 #9332A2
triadic
#5B32A2 #A25B32 #32A25B
tetradic
#5B32A2 #A23241 #79A232 #32A293
square
#5B32A2 #A23241 #79A232 #32A293
split-complementary
#5B32A2 #A29332 #41A232
monochromatic
#261544 #412473 #5B32A2 #784AC7 #9B79D6

Accessibility & contrast

On white

8.67
#5B32A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5B32A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B32A2
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B32A2#FFFFFF#000000##FFFFFF
##5B32A21.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#004AA0
Tritanopia (blue-blind)
#484D66
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b32a2;
/* rgb */ color: rgb(91, 50, 162);
/* oklch */ color: oklch(43.3% 0.171 295.1);
Tailwind
colors: {
  custom: {
    50: '#906dbe',
    500: '#5b32a2',
    950: '#000000',
  },
}
SCSS
$custom: #5b32a2;
$custom-light: #906dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5b32a2",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 162
  },
  "hsl": {
    "h": 261.964,
    "s": 52.83,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43342,
    "c": 0.17057,
    "h": 295.1
  },
  "luminance": 0.07114
}

Semantic roles & 50–950 ramp

primary
#5B32A2
secondary
#A2BE72
accent
#DC4CA7
background
#F9F6FB
surface
#F1ECF7
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B32A2

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

Preview Lab → · Contrast checker → · Palette generator →

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