#5B32BF#5B32BF

#5B32BF is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 45.9% C 0.204 H 289.0°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#5B32BF
RGBrgb(91, 50, 191)
HSLhsl(257, 59%, 47%)
HSVhsv(257, 74%, 75%)
CMYKcmyk(52.4%, 73.8%, 0%, 25.1%)
CIE-LABlab(34.53, 51.53, -67.27)
CIE-LCHlch(34.53, 84.74, 307.45°)
OKLaboklab(45.86% 0.0664 -0.1933)
OKLCHoklch(45.86% 0.204 289)
XYZxyz(14.8562, 8.2662, 50.0929)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B32BF #96BF32
analogous
#324FBF #5B32BF #A232BF
triadic
#5B32BF #BF5B32 #32BF5B
tetradic
#5B32BF #BF324F #96BF32 #32BFA2
square
#5B32BF #BF324F #96BF32 #32BFA2
split-complementary
#5B32BF #BFA232 #4FBF32
monochromatic
#2D195E #44258E #5B32BF #7E5AD4 #A48BE1

Accessibility & contrast

On white

7.91
#5B32BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5B32BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B32BF
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B32BF#FFFFFF#000000##FFFFFF
##5B32BF1.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C3
Deuteranopia (green-blind)
#004EBC
Tritanopia (blue-blind)
#355876
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b32bf;
/* rgb */ color: rgb(91, 50, 191);
/* oklch */ color: oklch(45.9% 0.204 289.0);
Tailwind
colors: {
  custom: {
    50: '#936ed3',
    500: '#5b32bf',
    950: '#000000',
  },
}
SCSS
$custom: #5b32bf;
$custom-light: #936ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b32bf",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 191
  },
  "hsl": {
    "h": 257.447,
    "s": 58.506,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45857,
    "c": 0.20444,
    "h": 289
  },
  "luminance": 0.08267
}

Semantic roles & 50–950 ramp

primary
#5B32BF
secondary
#B6CB82
accent
#E246B4
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5B32BF

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

Preview Lab → · Contrast checker → · Palette generator →

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