#5B32BD#5B32BD

#5B32BD is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.7% C 0.202 H 289.3°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#5B32BD
RGBrgb(91, 50, 189)
HSLhsl(258, 58%, 47%)
HSVhsv(258, 74%, 74%)
CMYKcmyk(51.9%, 73.5%, 0%, 25.9%)
CIE-LABlab(34.35, 50.97, -66.39)
CIE-LCHlch(34.35, 83.70, 307.52°)
OKLaboklab(45.68% 0.0669 -0.1908)
OKLCHoklch(45.68% 0.202 289.3)
XYZxyz(14.6376, 8.1788, 48.9416)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B32BD #94BD32
analogous
#324FBD #5B32BD #A132BD
triadic
#5B32BD #BD5B32 #32BD5B
tetradic
#5B32BD #BD324F #94BD32 #32BDA1
square
#5B32BD #BD324F #94BD32 #32BDA1
split-complementary
#5B32BD #BDA132 #4FBD32
monochromatic
#2C185C #44258D #5B32BD #7D59D3 #A389E0

Accessibility & contrast

On white

7.97
#5B32BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5B32BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B32BD
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B32BD#FFFFFF#000000##FFFFFF
##5B32BD1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C1
Deuteranopia (green-blind)
#004DBA
Tritanopia (blue-blind)
#375875
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b32bd;
/* rgb */ color: rgb(91, 50, 189);
/* oklch */ color: oklch(45.7% 0.202 289.3);
Tailwind
colors: {
  custom: {
    50: '#936ed2',
    500: '#5b32bd',
    950: '#000000',
  },
}
SCSS
$custom: #5b32bd;
$custom-light: #936ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b32bd",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 189
  },
  "hsl": {
    "h": 257.698,
    "s": 58.159,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45676,
    "c": 0.20215,
    "h": 289.3
  },
  "luminance": 0.08179
}

Semantic roles & 50–950 ramp

primary
#5B32BD
secondary
#B4CA81
accent
#E146B4
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5B32BD

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

Preview Lab → · Contrast checker → · Palette generator →

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