#5B32C2#5B32C2

#5B32C2 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.1% C 0.208 H 288.4°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5B32C2
RGBrgb(91, 50, 194)
HSLhsl(257, 59%, 48%)
HSVhsv(257, 74%, 76%)
CMYKcmyk(53.1%, 74.2%, 0%, 23.9%)
CIE-LABlab(34.80, 52.36, -68.59)
CIE-LCHlch(34.80, 86.29, 307.36°)
OKLaboklab(46.13% 0.0657 -0.1972)
OKLCHoklch(46.13% 0.208 288.4)
XYZxyz(15.1897, 8.3997, 51.8494)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B32C2 #99C232
analogous
#3251C2 #5B32C2 #A332C2
triadic
#5B32C2 #C25B32 #32C25B
tetradic
#5B32C2 #C23251 #99C232 #32C2A3
square
#5B32C2 #C23251 #99C232 #32C2A3
split-complementary
#5B32C2 #C2A332 #51C232
monochromatic
#2D1961 #442591 #5B32C2 #7F5CD5 #A58DE2

Accessibility & contrast

On white

7.84
#5B32C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5B32C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B32C2
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B32C2#FFFFFF#000000##FFFFFF
##5B32C21.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C6
Deuteranopia (green-blind)
#004EBF
Tritanopia (blue-blind)
#325A78
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5b32c2;
/* rgb */ color: rgb(91, 50, 194);
/* oklch */ color: oklch(46.1% 0.208 288.4);
Tailwind
colors: {
  custom: {
    50: '#946ed6',
    500: '#5b32c2',
    950: '#000000',
  },
}
SCSS
$custom: #5b32c2;
$custom-light: #946ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b32c2",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 194
  },
  "hsl": {
    "h": 257.083,
    "s": 59.016,
    "l": 47.843
  },
  "oklch": {
    "l": 0.4613,
    "c": 0.20786,
    "h": 288.4
  },
  "luminance": 0.084
}

Semantic roles & 50–950 ramp

primary
#5B32C2
secondary
#B7CC84
accent
#E246B6
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5B32C2

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

Preview Lab → · Contrast checker → · Palette generator →

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