#5D32B2#5D32B2

#5D32B2 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.9% C 0.189 H 292.4°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#5D32B2
RGBrgb(93, 50, 178)
HSLhsl(260, 56%, 45%)
HSVhsv(260, 72%, 70%)
CMYKcmyk(47.8%, 71.9%, 0%, 30.2%)
CIE-LABlab(33.61, 48.25, -61.09)
CIE-LCHlch(33.61, 77.84, 308.30°)
OKLaboklab(44.91% 0.0723 -0.1751)
OKLCHoklch(44.91% 0.189 292.4)
XYZxyz(13.6884, 7.8222, 42.8995)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D32B2 #87B232
analogous
#3247B2 #5D32B2 #9D32B2
triadic
#5D32B2 #B25D32 #32B25D
tetradic
#5D32B2 #B23247 #87B232 #32B29D
square
#5D32B2 #B23247 #87B232 #32B29D
split-complementary
#5D32B2 #B29D32 #47B232
monochromatic
#2B1752 #442582 #5D32B2 #7C53CF #A182DC

Accessibility & contrast

On white

8.19
#5D32B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5D32B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D32B2
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D32B2#FFFFFF#000000##FFFFFF
##5D32B21.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#43536F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5d32b2;
/* rgb */ color: rgb(93, 50, 178);
/* oklch */ color: oklch(44.9% 0.189 292.4);
Tailwind
colors: {
  custom: {
    50: '#936eca',
    500: '#5d32b2',
    950: '#000000',
  },
}
SCSS
$custom: #5d32b2;
$custom-light: #936eca;
$custom-dark: #000000;
JSON
{
  "hex": "#5d32b2",
  "rgb": {
    "r": 93,
    "g": 50,
    "b": 178
  },
  "hsl": {
    "h": 260.156,
    "s": 56.14,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44906,
    "c": 0.18947,
    "h": 292.4
  },
  "luminance": 0.07823
}

Semantic roles & 50–950 ramp

primary
#5D32B2
secondary
#ACC57B
accent
#DF48AD
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D32B2

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

Preview Lab → · Contrast checker → · Palette generator →

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