#5D32B6#5D32B6

#5D32B6 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.3% C 0.194 H 291.6°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#5D32B6
RGBrgb(93, 50, 182)
HSLhsl(260, 57%, 45%)
HSVhsv(260, 73%, 71%)
CMYKcmyk(48.9%, 72.5%, 0%, 28.6%)
CIE-LABlab(33.95, 49.35, -62.90)
CIE-LCHlch(33.95, 79.95, 308.12°)
OKLaboklab(45.25% 0.0714 -0.1805)
OKLCHoklch(45.25% 0.194 291.6)
XYZxyz(14.0959, 7.9852, 45.0455)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D32B6 #8BB632
analogous
#3249B6 #5D32B6 #9F32B6
triadic
#5D32B6 #B65D32 #32B65D
tetradic
#5D32B6 #B63249 #8BB632 #32B69F
square
#5D32B6 #B63249 #8BB632 #32B69F
split-complementary
#5D32B6 #B69F32 #49B632
monochromatic
#2C1856 #442586 #5D32B6 #7D55D0 #A285DD

Accessibility & contrast

On white

8.09
#5D32B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5D32B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D32B6
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D32B6#FFFFFF#000000##FFFFFF
##5D32B61.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BA
Deuteranopia (green-blind)
#004DB3
Tritanopia (blue-blind)
#405571
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5d32b6;
/* rgb */ color: rgb(93, 50, 182);
/* oklch */ color: oklch(45.3% 0.194 291.6);
Tailwind
colors: {
  custom: {
    50: '#936ecd',
    500: '#5d32b6',
    950: '#000000',
  },
}
SCSS
$custom: #5d32b6;
$custom-light: #936ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d32b6",
  "rgb": {
    "r": 93,
    "g": 50,
    "b": 182
  },
  "hsl": {
    "h": 259.545,
    "s": 56.897,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45254,
    "c": 0.19408,
    "h": 291.6
  },
  "luminance": 0.07986
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D32B6

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

Preview Lab → · Contrast checker → · Palette generator →

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