#5E32B2#5E32B2

#5E32B2 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.0% C 0.190 H 292.9°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#5E32B2
RGBrgb(94, 50, 178)
HSLhsl(261, 56%, 45%)
HSVhsv(261, 72%, 70%)
CMYKcmyk(47.2%, 71.9%, 0%, 30.2%)
CIE-LABlab(33.72, 48.42, -60.90)
CIE-LCHlch(33.72, 77.80, 308.49°)
OKLaboklab(45.01% 0.0738 -0.1746)
OKLCHoklch(45.01% 0.19 292.9)
XYZxyz(13.7903, 7.8748, 42.9042)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E32B2 #86B232
analogous
#3246B2 #5E32B2 #9E32B2
triadic
#5E32B2 #B25E32 #32B25E
tetradic
#5E32B2 #B23246 #86B232 #32B29E
square
#5E32B2 #B23246 #86B232 #32B29E
split-complementary
#5E32B2 #B29E32 #46B232
monochromatic
#2C1752 #452582 #5E32B2 #7D53CF #A182DC

Accessibility & contrast

On white

8.16
#5E32B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5E32B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E32B2
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E32B2#FFFFFF#000000##FFFFFF
##5E32B21.008.162.588.16
#FFFFFF8.161.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#004DAF
Tritanopia (blue-blind)
#44536F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5e32b2;
/* rgb */ color: rgb(94, 50, 178);
/* oklch */ color: oklch(45.0% 0.190 292.9);
Tailwind
colors: {
  custom: {
    50: '#936eca',
    500: '#5e32b2',
    950: '#000000',
  },
}
SCSS
$custom: #5e32b2;
$custom-light: #936eca;
$custom-dark: #000000;
JSON
{
  "hex": "#5e32b2",
  "rgb": {
    "r": 94,
    "g": 50,
    "b": 178
  },
  "hsl": {
    "h": 260.625,
    "s": 56.14,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4501,
    "c": 0.1895,
    "h": 292.9
  },
  "luminance": 0.07875
}

Semantic roles & 50–950 ramp

primary
#5E32B2
secondary
#ACC57B
accent
#DF48AC
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E32B2

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

Preview Lab → · Contrast checker → · Palette generator →

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