#5E32AB#5E32AB

#5E32AB is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.4% C 0.181 H 294.5°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#5E32AB
RGBrgb(94, 50, 171)
HSLhsl(262, 55%, 43%)
HSVhsv(262, 71%, 67%)
CMYKcmyk(45%, 70.8%, 0%, 32.9%)
CIE-LABlab(33.14, 46.51, -57.68)
CIE-LCHlch(33.14, 74.09, 308.88°)
OKLaboklab(44.41% 0.0751 -0.1651)
OKLCHoklch(44.41% 0.181 294.5)
XYZxyz(13.1054, 7.6008, 39.2968)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E32AB #7FAB32
analogous
#3242AB #5E32AB #9A32AB
triadic
#5E32AB #AB5E32 #32AB5E
tetradic
#5E32AB #AB3242 #7FAB32 #32AB9A
square
#5E32AB #AB3242 #7FAB32 #32AB9A
split-complementary
#5E32AB #AB9A32 #42AB32
monochromatic
#2A164C #44247C #5E32AB #7C4FCB #9F7ED9

Accessibility & contrast

On white

8.33
#5E32AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5E32AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E32AB
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E32AB#FFFFFF#000000##FFFFFF
##5E32AB1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#004CA9
Tritanopia (blue-blind)
#48506B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5e32ab;
/* rgb */ color: rgb(94, 50, 171);
/* oklch */ color: oklch(44.4% 0.181 294.5);
Tailwind
colors: {
  custom: {
    50: '#926dc5',
    500: '#5e32ab',
    950: '#000000',
  },
}
SCSS
$custom: #5e32ab;
$custom-light: #926dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e32ab",
  "rgb": {
    "r": 94,
    "g": 50,
    "b": 171
  },
  "hsl": {
    "h": 261.818,
    "s": 54.751,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44414,
    "c": 0.18139,
    "h": 294.5
  },
  "luminance": 0.07601
}

Semantic roles & 50–950 ramp

primary
#5E32AB
secondary
#A7C277
accent
#DE4AA8
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E32AB

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

Preview Lab → · Contrast checker → · Palette generator →

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