#5E32B5#5E32B5

#5E32B5 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.3% C 0.193 H 292.3°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#5E32B5
RGBrgb(94, 50, 181)
HSLhsl(260, 57%, 45%)
HSVhsv(260, 72%, 71%)
CMYKcmyk(48.1%, 72.4%, 0%, 29%)
CIE-LABlab(33.98, 49.24, -62.27)
CIE-LCHlch(33.98, 79.38, 308.34°)
OKLaboklab(45.27% 0.0731 -0.1786)
OKLCHoklch(45.27% 0.193 292.3)
XYZxyz(14.0949, 7.9966, 44.5080)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E32B5 #89B532
analogous
#3247B5 #5E32B5 #A032B5
triadic
#5E32B5 #B55E32 #32B55E
tetradic
#5E32B5 #B53247 #89B532 #32B5A0
square
#5E32B5 #B53247 #89B532 #32B5A0
split-complementary
#5E32B5 #B5A032 #47B532
monochromatic
#2C1855 #452585 #5E32B5 #7E54D0 #A284DD

Accessibility & contrast

On white

8.08
#5E32B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5E32B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E32B5
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E32B5#FFFFFF#000000##FFFFFF
##5E32B51.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#004DB2
Tritanopia (blue-blind)
#435470
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5e32b5;
/* rgb */ color: rgb(94, 50, 181);
/* oklch */ color: oklch(45.3% 0.193 292.3);
Tailwind
colors: {
  custom: {
    50: '#946ecc',
    500: '#5e32b5',
    950: '#000000',
  },
}
SCSS
$custom: #5e32b5;
$custom-light: #946ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e32b5",
  "rgb": {
    "r": 94,
    "g": 50,
    "b": 181
  },
  "hsl": {
    "h": 260.153,
    "s": 56.71,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4527,
    "c": 0.19295,
    "h": 292.3
  },
  "luminance": 0.07997
}

Semantic roles & 50–950 ramp

primary
#5E32B5
secondary
#AEC77C
accent
#E048AD
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E32B5

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

Preview Lab → · Contrast checker → · Palette generator →

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