#5B32A4#5B32A4

#5B32A4 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.5% C 0.173 H 294.6°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#5B32A4
RGBrgb(91, 50, 164)
HSLhsl(262, 53%, 42%)
HSVhsv(262, 70%, 64%)
CMYKcmyk(44.5%, 69.5%, 0%, 35.7%)
CIE-LABlab(32.23, 44.03, -54.97)
CIE-LCHlch(32.23, 70.43, 308.70°)
OKLaboklab(43.51% 0.072 -0.1572)
OKLCHoklch(43.51% 0.173 294.6)
XYZxyz(12.1540, 7.1854, 35.8613)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B32A4 #7BA432
analogous
#3242A4 #5B32A4 #9432A4
triadic
#5B32A4 #A45B32 #32A45B
tetradic
#5B32A4 #A43242 #7BA432 #32A494
square
#5B32A4 #A43242 #7BA432 #32A494
split-complementary
#5B32A4 #A49432 #42A432
monochromatic
#271546 #412475 #5B32A4 #784BC8 #9B7AD6

Accessibility & contrast

On white

8.62
#5B32A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5B32A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B32A4
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B32A4#FFFFFF#000000##FFFFFF
##5B32A41.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA7
Deuteranopia (green-blind)
#004AA2
Tritanopia (blue-blind)
#474E67
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b32a4;
/* rgb */ color: rgb(91, 50, 164);
/* oklch */ color: oklch(43.5% 0.173 294.6);
Tailwind
colors: {
  custom: {
    50: '#906dc0',
    500: '#5b32a4',
    950: '#000000',
  },
}
SCSS
$custom: #5b32a4;
$custom-light: #906dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b32a4",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 164
  },
  "hsl": {
    "h": 261.579,
    "s": 53.271,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43508,
    "c": 0.17295,
    "h": 294.6
  },
  "luminance": 0.07186
}

Semantic roles & 50–950 ramp

primary
#5B32A4
secondary
#A4BF73
accent
#DD4BA8
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B32A4

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

Preview Lab → · Contrast checker → · Palette generator →

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