#5D32A1#5D32A1

#5D32A1 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.5% C 0.170 H 296.4°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#5D32A1
RGBrgb(93, 50, 161)
HSLhsl(263, 53%, 41%)
HSVhsv(263, 69%, 63%)
CMYKcmyk(42.2%, 68.9%, 0%, 36.9%)
CIE-LABlab(32.22, 43.60, -53.17)
CIE-LCHlch(32.22, 68.76, 309.36°)
OKLaboklab(43.48% 0.0754 -0.1519)
OKLCHoklch(43.48% 0.17 296.4)
XYZxyz(12.0861, 7.1813, 34.4607)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D32A1 #76A132
analogous
#323FA1 #5D32A1 #9532A1
triadic
#5D32A1 #A15D32 #32A15D
tetradic
#5D32A1 #A1323F #76A132 #32A195
square
#5D32A1 #A1323F #76A132 #32A195
split-complementary
#5D32A1 #A19532 #3FA132
monochromatic
#271544 #422372 #5D32A1 #7A4AC7 #9C78D5

Accessibility & contrast

On white

8.62
#5D32A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5D32A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D32A1
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D32A1#FFFFFF#000000##FFFFFF
##5D32A11.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA4
Deuteranopia (green-blind)
#004A9F
Tritanopia (blue-blind)
#4B4D65
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5d32a1;
/* rgb */ color: rgb(93, 50, 161);
/* oklch */ color: oklch(43.5% 0.170 296.4);
Tailwind
colors: {
  custom: {
    50: '#916dbe',
    500: '#5d32a1',
    950: '#000000',
  },
}
SCSS
$custom: #5d32a1;
$custom-light: #916dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5d32a1",
  "rgb": {
    "r": 93,
    "g": 50,
    "b": 161
  },
  "hsl": {
    "h": 263.243,
    "s": 52.607,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43479,
    "c": 0.16956,
    "h": 296.4
  },
  "luminance": 0.07182
}

Semantic roles & 50–950 ramp

primary
#5D32A1
secondary
#A0BE71
accent
#DC4CA4
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D32A1

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

Preview Lab → · Contrast checker → · Palette generator →

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