#5B32B5#5B32B5

#5B32B5 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 45.0% C 0.193 H 290.9°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#5B32B5
RGBrgb(91, 50, 181)
HSLhsl(259, 57%, 45%)
HSVhsv(259, 72%, 71%)
CMYKcmyk(49.7%, 72.4%, 0%, 29%)
CIE-LABlab(33.65, 48.74, -62.81)
CIE-LCHlch(33.65, 79.51, 307.81°)
OKLaboklab(44.96% 0.0687 -0.1803)
OKLCHoklch(44.96% 0.193 290.9)
XYZxyz(13.7931, 7.8410, 44.4938)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B32B5 #8CB532
analogous
#324AB5 #5B32B5 #9D32B5
triadic
#5B32B5 #B55B32 #32B55B
tetradic
#5B32B5 #B5324A #8CB532 #32B59D
square
#5B32B5 #B5324A #8CB532 #32B59D
split-complementary
#5B32B5 #B59D32 #4AB532
monochromatic
#2B1855 #432585 #5B32B5 #7B54D0 #A084DD

Accessibility & contrast

On white

8.18
#5B32B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5B32B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B32B5
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B32B5#FFFFFF#000000##FFFFFF
##5B32B51.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B9
Deuteranopia (green-blind)
#004CB2
Tritanopia (blue-blind)
#3D5470
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5b32b5;
/* rgb */ color: rgb(91, 50, 181);
/* oklch */ color: oklch(45.0% 0.193 290.9);
Tailwind
colors: {
  custom: {
    50: '#926ecc',
    500: '#5b32b5',
    950: '#000000',
  },
}
SCSS
$custom: #5b32b5;
$custom-light: #926ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b32b5",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 181
  },
  "hsl": {
    "h": 258.779,
    "s": 56.71,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44963,
    "c": 0.19292,
    "h": 290.9
  },
  "luminance": 0.07842
}

Semantic roles & 50–950 ramp

primary
#5B32B5
secondary
#AFC77C
accent
#E048B0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B32B5

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

Preview Lab → · Contrast checker → · Palette generator →

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