#5D32BA#5D32BA

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

Color values

HEX#5D32BA
RGBrgb(93, 50, 186)
HSLhsl(259, 58%, 46%)
HSVhsv(259, 73%, 73%)
CMYKcmyk(50%, 73.1%, 0%, 27.1%)
CIE-LABlab(34.30, 50.45, -64.70)
CIE-LCHlch(34.30, 82.04, 307.95°)
OKLaboklab(45.61% 0.0705 -0.1857)
OKLCHoklch(45.61% 0.199 290.8)
XYZxyz(14.5152, 8.1529, 47.2537)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D32BA #8FBA32
analogous
#324BBA #5D32BA #A132BA
triadic
#5D32BA #BA5D32 #32BA5D
tetradic
#5D32BA #BA324B #8FBA32 #32BAA1
square
#5D32BA #BA324B #8FBA32 #32BAA1
split-complementary
#5D32BA #BAA132 #4BBA32
monochromatic
#2D185A #45258A #5D32BA #7E57D2 #A388DF

Accessibility & contrast

On white

7.98
#5D32BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5D32BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D32BA
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D32BA#FFFFFF#000000##FFFFFF
##5D32BA1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d32ba;
/* rgb */ color: rgb(93, 50, 186);
/* oklch */ color: oklch(45.6% 0.199 290.8);
Tailwind
colors: {
  custom: {
    50: '#946ed0',
    500: '#5d32ba',
    950: '#000000',
  },
}
SCSS
$custom: #5d32ba;
$custom-light: #946ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d32ba",
  "rgb": {
    "r": 93,
    "g": 50,
    "b": 186
  },
  "hsl": {
    "h": 258.971,
    "s": 57.627,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45607,
    "c": 0.19868,
    "h": 290.8
  },
  "luminance": 0.08154
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D32BA

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

Preview Lab → · Contrast checker → · Palette generator →

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