#5D32B8#5D32B8

#5D32B8 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.4% C 0.196 H 291.2°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#5D32B8
RGBrgb(93, 50, 184)
HSLhsl(259, 57%, 46%)
HSVhsv(259, 73%, 72%)
CMYKcmyk(49.5%, 72.8%, 0%, 27.8%)
CIE-LABlab(34.13, 49.90, -63.80)
CIE-LCHlch(34.13, 81.00, 308.03°)
OKLaboklab(45.43% 0.071 -0.1831)
OKLCHoklch(45.43% 0.196 291.2)
XYZxyz(14.3041, 8.0685, 46.1418)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D32B8 #8DB832
analogous
#324AB8 #5D32B8 #A032B8
triadic
#5D32B8 #B85D32 #32B85D
tetradic
#5D32B8 #B8324A #8DB832 #32B8A0
square
#5D32B8 #B8324A #8DB832 #32B8A0
split-complementary
#5D32B8 #B8A032 #4AB832
monochromatic
#2C1858 #452588 #5D32B8 #7E56D1 #A286DE

Accessibility & contrast

On white

8.03
#5D32B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D32B8
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D32B8#FFFFFF#000000##FFFFFF
##5D32B81.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BC
Deuteranopia (green-blind)
#004DB5
Tritanopia (blue-blind)
#3F5572
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5d32b8;
/* rgb */ color: rgb(93, 50, 184);
/* oklch */ color: oklch(45.4% 0.196 291.2);
Tailwind
colors: {
  custom: {
    50: '#946ece',
    500: '#5d32b8',
    950: '#000000',
  },
}
SCSS
$custom: #5d32b8;
$custom-light: #946ece;
$custom-dark: #000000;
JSON
{
  "hex": "#5d32b8",
  "rgb": {
    "r": 93,
    "g": 50,
    "b": 184
  },
  "hsl": {
    "h": 259.254,
    "s": 57.265,
    "l": 45.882
  },
  "oklch": {
    "l": 0.4543,
    "c": 0.19639,
    "h": 291.2
  },
  "luminance": 0.08069
}

Semantic roles & 50–950 ramp

primary
#5D32B8
secondary
#B0C87E
accent
#E147AF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5D32B8

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

Preview Lab → · Contrast checker → · Palette generator →

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