#5B32AB#5B32AB

#5B32AB is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.1% C 0.181 H 293.0°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#5B32AB
RGBrgb(91, 50, 171)
HSLhsl(260, 55%, 43%)
HSVhsv(260, 71%, 67%)
CMYKcmyk(46.8%, 70.8%, 0%, 32.9%)
CIE-LABlab(32.80, 45.97, -58.24)
CIE-LCHlch(32.80, 74.20, 308.28°)
OKLaboklab(44.1% 0.0708 -0.1668)
OKLCHoklch(44.1% 0.181 293)
XYZxyz(12.8036, 7.4452, 39.2826)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B32AB #82AB32
analogous
#3245AB #5B32AB #9732AB
triadic
#5B32AB #AB5B32 #32AB5B
tetradic
#5B32AB #AB3245 #82AB32 #32AB97
square
#5B32AB #AB3245 #82AB32 #32AB97
split-complementary
#5B32AB #AB9732 #45AB32
monochromatic
#29164C #42247C #5B32AB #794FCB #9D7ED9

Accessibility & contrast

On white

8.44
#5B32AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5B32AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B32AB
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B32AB#FFFFFF#000000##FFFFFF
##5B32AB1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#004BA9
Tritanopia (blue-blind)
#43516B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5b32ab;
/* rgb */ color: rgb(91, 50, 171);
/* oklch */ color: oklch(44.1% 0.181 293.0);
Tailwind
colors: {
  custom: {
    50: '#916dc5',
    500: '#5b32ab',
    950: '#000000',
  },
}
SCSS
$custom: #5b32ab;
$custom-light: #916dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b32ab",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 171
  },
  "hsl": {
    "h": 260.331,
    "s": 54.751,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44096,
    "c": 0.18123,
    "h": 293
  },
  "luminance": 0.07446
}

Semantic roles & 50–950 ramp

primary
#5B32AB
secondary
#A9C277
accent
#DE4AAC
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5B32AB

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

Preview Lab → · Contrast checker → · Palette generator →

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