#5D32B5#5D32B5

#5D32B5 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.2% C 0.193 H 291.8°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#5D32B5
RGBrgb(93, 50, 181)
HSLhsl(260, 57%, 45%)
HSVhsv(260, 72%, 71%)
CMYKcmyk(48.6%, 72.4%, 0%, 29%)
CIE-LABlab(33.87, 49.07, -62.45)
CIE-LCHlch(33.87, 79.42, 308.16°)
OKLaboklab(45.17% 0.0717 -0.1791)
OKLCHoklch(45.17% 0.193 291.8)
XYZxyz(13.9929, 7.9440, 44.5032)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D32B5 #8AB532
analogous
#3248B5 #5D32B5 #9F32B5
triadic
#5D32B5 #B55D32 #32B55D
tetradic
#5D32B5 #B53248 #8AB532 #32B59F
square
#5D32B5 #B53248 #8AB532 #32B59F
split-complementary
#5D32B5 #B59F32 #48B532
monochromatic
#2C1855 #442585 #5D32B5 #7D54D0 #A184DD

Accessibility & contrast

On white

8.11
#5D32B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5D32B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D32B5
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D32B5#FFFFFF#000000##FFFFFF
##5D32B51.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#004DB2
Tritanopia (blue-blind)
#415470
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5d32b5;
/* rgb */ color: rgb(93, 50, 181);
/* oklch */ color: oklch(45.2% 0.193 291.8);
Tailwind
colors: {
  custom: {
    50: '#936ecc',
    500: '#5d32b5',
    950: '#000000',
  },
}
SCSS
$custom: #5d32b5;
$custom-light: #936ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d32b5",
  "rgb": {
    "r": 93,
    "g": 50,
    "b": 181
  },
  "hsl": {
    "h": 259.695,
    "s": 56.71,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45167,
    "c": 0.19294,
    "h": 291.8
  },
  "luminance": 0.07945
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D32B5

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

Preview Lab → · Contrast checker → · Palette generator →

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