#5D32B7#5D32B7

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

Color values

HEX#5D32B7
RGBrgb(93, 50, 183)
HSLhsl(259, 57%, 46%)
HSVhsv(259, 73%, 72%)
CMYKcmyk(49.2%, 72.7%, 0%, 28.2%)
CIE-LABlab(34.04, 49.62, -63.35)
CIE-LCHlch(34.04, 80.47, 308.07°)
OKLaboklab(45.34% 0.0712 -0.1818)
OKLCHoklch(45.34% 0.195 291.4)
XYZxyz(14.1996, 8.0267, 45.5917)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D32B7 #8CB732
analogous
#324AB7 #5D32B7 #9F32B7
triadic
#5D32B7 #B75D32 #32B75D
tetradic
#5D32B7 #B7324A #8CB732 #32B79F
square
#5D32B7 #B7324A #8CB732 #32B79F
split-complementary
#5D32B7 #B79F32 #4AB732
monochromatic
#2C1857 #452587 #5D32B7 #7D56D1 #A286DE

Accessibility & contrast

On white

8.06
#5D32B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5D32B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D32B7
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D32B7#FFFFFF#000000##FFFFFF
##5D32B71.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BB
Deuteranopia (green-blind)
#004DB4
Tritanopia (blue-blind)
#3F5571
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5d32b7;
/* rgb */ color: rgb(93, 50, 183);
/* oklch */ color: oklch(45.3% 0.195 291.4);
Tailwind
colors: {
  custom: {
    50: '#936ece',
    500: '#5d32b7',
    950: '#000000',
  },
}
SCSS
$custom: #5d32b7;
$custom-light: #936ece;
$custom-dark: #000000;
JSON
{
  "hex": "#5d32b7",
  "rgb": {
    "r": 93,
    "g": 50,
    "b": 183
  },
  "hsl": {
    "h": 259.398,
    "s": 57.082,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45342,
    "c": 0.19524,
    "h": 291.4
  },
  "luminance": 0.08027
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D32B7

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

Preview Lab → · Contrast checker → · Palette generator →

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