#5B32CF#5B32CF

#5B32CF is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.3% C 0.223 H 286.3°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#5B32CF
RGBrgb(91, 50, 207)
HSLhsl(256, 62%, 50%)
HSVhsv(256, 76%, 81%)
CMYKcmyk(56%, 75.8%, 0%, 18.8%)
CIE-LABlab(36.00, 55.98, -74.20)
CIE-LCHlch(36.00, 92.94, 307.03°)
OKLaboklab(47.34% 0.0623 -0.2136)
OKLCHoklch(47.34% 0.223 286.3)
XYZxyz(16.7141, 9.0094, 59.8777)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B32CF #A6CF32
analogous
#3257CF #5B32CF #AA32CF
triadic
#5B32CF #CF5B32 #32CF5B
tetradic
#5B32CF #CF3257 #A6CF32 #32CFAA
square
#5B32CF #CF3257 #A6CF32 #32CFAA
split-complementary
#5B32CF #CFAA32 #57CF32
monochromatic
#2F1A6D #45259F #5B32CF #8364DB #AA95E6

Accessibility & contrast

On white

7.49
#5B32CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5B32CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B32CF
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B32CF#FFFFFF#000000##FFFFFF
##5B32CF1.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D3
Deuteranopia (green-blind)
#0050CC
Tritanopia (blue-blind)
#245F7F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b32cf;
/* rgb */ color: rgb(91, 50, 207);
/* oklch */ color: oklch(47.3% 0.223 286.3);
Tailwind
colors: {
  custom: {
    50: '#966fdf',
    500: '#5b32cf',
    950: '#000000',
  },
}
SCSS
$custom: #5b32cf;
$custom-light: #966fdf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b32cf",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 207
  },
  "hsl": {
    "h": 255.669,
    "s": 62.055,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47337,
    "c": 0.22253,
    "h": 286.3
  },
  "luminance": 0.0901
}

Semantic roles & 50–950 ramp

primary
#5B32CF
secondary
#BFD18B
accent
#E543BB
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5B32CF

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

Preview Lab → · Contrast checker → · Palette generator →

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