#5E32BA#5E32BA

#5E32BA is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.7% C 0.199 H 291.2°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#5E32BA
RGBrgb(94, 50, 186)
HSLhsl(259, 58%, 46%)
HSVhsv(259, 73%, 73%)
CMYKcmyk(49.5%, 73.1%, 0%, 27.1%)
CIE-LABlab(34.41, 50.61, -64.52)
CIE-LCHlch(34.41, 82.00, 308.11°)
OKLaboklab(45.71% 0.072 -0.1852)
OKLCHoklch(45.71% 0.199 291.2)
XYZxyz(14.6171, 8.2055, 47.2585)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E32BA #8EBA32
analogous
#324ABA #5E32BA #A232BA
triadic
#5E32BA #BA5E32 #32BA5E
tetradic
#5E32BA #BA324A #8EBA32 #32BAA2
square
#5E32BA #BA324A #8EBA32 #32BAA2
split-complementary
#5E32BA #BAA232 #4ABA32
monochromatic
#2D185A #46258A #5E32BA #7F57D2 #A488DF

Accessibility & contrast

On white

7.95
#5E32BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5E32BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E32BA
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E32BA#FFFFFF#000000##FFFFFF
##5E32BA1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BE
Deuteranopia (green-blind)
#004EB7
Tritanopia (blue-blind)
#3F5673
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5e32ba;
/* rgb */ color: rgb(94, 50, 186);
/* oklch */ color: oklch(45.7% 0.199 291.2);
Tailwind
colors: {
  custom: {
    50: '#946ed0',
    500: '#5e32ba',
    950: '#000000',
  },
}
SCSS
$custom: #5e32ba;
$custom-light: #946ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e32ba",
  "rgb": {
    "r": 94,
    "g": 50,
    "b": 186
  },
  "hsl": {
    "h": 259.412,
    "s": 57.627,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45708,
    "c": 0.19868,
    "h": 291.2
  },
  "luminance": 0.08206
}

Semantic roles & 50–950 ramp

primary
#5E32BA
secondary
#B1C97F
accent
#E147AF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5E32BA

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

Preview Lab → · Contrast checker → · Palette generator →

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