#5D32B4#5D32B4

#5D32B4 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.1% C 0.192 H 292.0°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#5D32B4
RGBrgb(93, 50, 180)
HSLhsl(260, 57%, 45%)
HSVhsv(260, 72%, 71%)
CMYKcmyk(48.3%, 72.2%, 0%, 29.4%)
CIE-LABlab(33.78, 48.80, -62.00)
CIE-LCHlch(33.78, 78.90, 308.21°)
OKLaboklab(45.08% 0.0719 -0.1778)
OKLCHoklch(45.08% 0.192 292)
XYZxyz(13.8907, 7.9032, 43.9647)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D32B4 #89B432
analogous
#3248B4 #5D32B4 #9E32B4
triadic
#5D32B4 #B45D32 #32B45D
tetradic
#5D32B4 #B43248 #89B432 #32B49E
square
#5D32B4 #B43248 #89B432 #32B49E
split-complementary
#5D32B4 #B49E32 #48B432
monochromatic
#2C1754 #442584 #5D32B4 #7D54CF #A184DD

Accessibility & contrast

On white

8.14
#5D32B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5D32B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D32B4
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D32B4#FFFFFF#000000##FFFFFF
##5D32B41.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#004DB1
Tritanopia (blue-blind)
#415470
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5d32b4;
/* rgb */ color: rgb(93, 50, 180);
/* oklch */ color: oklch(45.1% 0.192 292.0);
Tailwind
colors: {
  custom: {
    50: '#936ecb',
    500: '#5d32b4',
    950: '#000000',
  },
}
SCSS
$custom: #5d32b4;
$custom-light: #936ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d32b4",
  "rgb": {
    "r": 93,
    "g": 50,
    "b": 180
  },
  "hsl": {
    "h": 259.846,
    "s": 56.522,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45079,
    "c": 0.19178,
    "h": 292
  },
  "luminance": 0.07904
}

Semantic roles & 50–950 ramp

primary
#5D32B4
secondary
#AEC67C
accent
#E048AE
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D32B4

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

Preview Lab → · Contrast checker → · Palette generator →

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