#5B32BB#5B32BB

#5B32BB is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.5% C 0.200 H 289.7°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#5B32BB
RGBrgb(91, 50, 187)
HSLhsl(258, 58%, 46%)
HSVhsv(258, 73%, 73%)
CMYKcmyk(51.3%, 73.3%, 0%, 26.7%)
CIE-LABlab(34.17, 50.41, -65.50)
CIE-LCHlch(34.17, 82.66, 307.58°)
OKLaboklab(45.5% 0.0674 -0.1882)
OKLCHoklch(45.5% 0.2 289.7)
XYZxyz(14.4220, 8.0926, 47.8062)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B32BB #92BB32
analogous
#324EBB #5B32BB #A032BB
triadic
#5B32BB #BB5B32 #32BB5B
tetradic
#5B32BB #BB324E #92BB32 #32BBA0
square
#5B32BB #BB324E #92BB32 #32BBA0
split-complementary
#5B32BB #BBA032 #4EBB32
monochromatic
#2C185A #44258B #5B32BB #7D58D2 #A288DF

Accessibility & contrast

On white

8.02
#5B32BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5B32BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B32BB
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B32BB#FFFFFF#000000##FFFFFF
##5B32BB1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BF
Deuteranopia (green-blind)
#004DB8
Tritanopia (blue-blind)
#385774
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5b32bb;
/* rgb */ color: rgb(91, 50, 187);
/* oklch */ color: oklch(45.5% 0.200 289.7);
Tailwind
colors: {
  custom: {
    50: '#936ed1',
    500: '#5b32bb',
    950: '#000000',
  },
}
SCSS
$custom: #5b32bb;
$custom-light: #936ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b32bb",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 187
  },
  "hsl": {
    "h": 257.956,
    "s": 57.806,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45496,
    "c": 0.19985,
    "h": 289.7
  },
  "luminance": 0.08093
}

Semantic roles & 50–950 ramp

primary
#5B32BB
secondary
#B3C980
accent
#E147B3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5B32BB

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

Preview Lab → · Contrast checker → · Palette generator →

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