#5E32B7#5E32B7

#5E32B7 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.4% C 0.195 H 291.9°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#5E32B7
RGBrgb(94, 50, 183)
HSLhsl(260, 57%, 46%)
HSVhsv(260, 73%, 72%)
CMYKcmyk(48.6%, 72.7%, 0%, 28.2%)
CIE-LABlab(34.15, 49.79, -63.17)
CIE-LCHlch(34.15, 80.43, 308.24°)
OKLaboklab(45.44% 0.0727 -0.1812)
OKLCHoklch(45.44% 0.195 291.9)
XYZxyz(14.3015, 8.0793, 45.5965)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E32B7 #8BB732
analogous
#3248B7 #5E32B7 #A132B7
triadic
#5E32B7 #B75E32 #32B75E
tetradic
#5E32B7 #B73248 #8BB732 #32B7A1
square
#5E32B7 #B73248 #8BB732 #32B7A1
split-complementary
#5E32B7 #B7A132 #48B732
monochromatic
#2D1857 #452587 #5E32B7 #7E56D1 #A386DE

Accessibility & contrast

On white

8.03
#5E32B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5E32B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E32B7
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E32B7#FFFFFF#000000##FFFFFF
##5E32B71.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BB
Deuteranopia (green-blind)
#004EB4
Tritanopia (blue-blind)
#415571
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5e32b7;
/* rgb */ color: rgb(94, 50, 183);
/* oklch */ color: oklch(45.4% 0.195 291.9);
Tailwind
colors: {
  custom: {
    50: '#946ece',
    500: '#5e32b7',
    950: '#000000',
  },
}
SCSS
$custom: #5e32b7;
$custom-light: #946ece;
$custom-dark: #000000;
JSON
{
  "hex": "#5e32b7",
  "rgb": {
    "r": 94,
    "g": 50,
    "b": 183
  },
  "hsl": {
    "h": 259.85,
    "s": 57.082,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45444,
    "c": 0.19525,
    "h": 291.9
  },
  "luminance": 0.0808
}

Semantic roles & 50–950 ramp

primary
#5E32B7
secondary
#AFC77D
accent
#E047AE
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5E32B7

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

Preview Lab → · Contrast checker → · Palette generator →

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