#5B32C9#5B32C9

#5B32C9 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.8% C 0.216 H 287.2°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#5B32C9
RGBrgb(91, 50, 201)
HSLhsl(256, 60%, 49%)
HSVhsv(256, 75%, 79%)
CMYKcmyk(54.7%, 75.1%, 0%, 21.2%)
CIE-LABlab(35.44, 54.31, -71.63)
CIE-LCHlch(35.44, 89.89, 307.17°)
OKLaboklab(46.78% 0.0639 -0.2061)
OKLCHoklch(46.78% 0.216 287.2)
XYZxyz(15.9945, 8.7215, 56.0877)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B32C9 #A0C932
analogous
#3255C9 #5B32C9 #A632C9
triadic
#5B32C9 #C95B32 #32C95B
tetradic
#5B32C9 #C93255 #A0C932 #32C9A6
square
#5B32C9 #C93255 #A0C932 #32C9A6
split-complementary
#5B32C9 #C9A632 #55C932
monochromatic
#2F1A67 #452698 #5B32C9 #8161D8 #A892E4

Accessibility & contrast

On white

7.65
#5B32C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5B32C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B32C9
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B32C9#FFFFFF#000000##FFFFFF
##5B32C91.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CD
Deuteranopia (green-blind)
#004FC6
Tritanopia (blue-blind)
#2B5C7C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b32c9;
/* rgb */ color: rgb(91, 50, 201);
/* oklch */ color: oklch(46.8% 0.216 287.2);
Tailwind
colors: {
  custom: {
    50: '#956fdb',
    500: '#5b32c9',
    950: '#000000',
  },
}
SCSS
$custom: #5b32c9;
$custom-light: #956fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b32c9",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 201
  },
  "hsl": {
    "h": 256.291,
    "s": 60.159,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46775,
    "c": 0.21579,
    "h": 287.2
  },
  "luminance": 0.08722
}

Semantic roles & 50–950 ramp

primary
#5B32C9
secondary
#BBCF88
accent
#E344B8
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B32C9

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

Preview Lab → · Contrast checker → · Palette generator →

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