#5D32A7#5D32A7

#5D32A7 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.0% C 0.177 H 294.9°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#5D32A7
RGBrgb(93, 50, 167)
HSLhsl(262, 54%, 43%)
HSVhsv(262, 70%, 65%)
CMYKcmyk(44.3%, 70.1%, 0%, 34.5%)
CIE-LABlab(32.70, 45.24, -56.00)
CIE-LCHlch(32.70, 71.99, 308.93°)
OKLaboklab(43.97% 0.0744 -0.1602)
OKLCHoklch(43.97% 0.177 294.9)
XYZxyz(12.6280, 7.3981, 37.3144)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D32A7 #7CA732
analogous
#3242A7 #5D32A7 #9732A7
triadic
#5D32A7 #A75D32 #32A75D
tetradic
#5D32A7 #A73242 #7CA732 #32A797
square
#5D32A7 #A73242 #7CA732 #32A797
split-complementary
#5D32A7 #A79732 #42A732
monochromatic
#291649 #432478 #5D32A7 #7B4DCA #9E7CD8

Accessibility & contrast

On white

8.47
#5D32A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5D32A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D32A7
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D32A7#FFFFFF#000000##FFFFFF
##5D32A71.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAA
Deuteranopia (green-blind)
#004BA5
Tritanopia (blue-blind)
#494F69
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5d32a7;
/* rgb */ color: rgb(93, 50, 167);
/* oklch */ color: oklch(44.0% 0.177 294.9);
Tailwind
colors: {
  custom: {
    50: '#916dc2',
    500: '#5d32a7',
    950: '#000000',
  },
}
SCSS
$custom: #5d32a7;
$custom-light: #916dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d32a7",
  "rgb": {
    "r": 93,
    "g": 50,
    "b": 167
  },
  "hsl": {
    "h": 262.051,
    "s": 53.917,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43972,
    "c": 0.17664,
    "h": 294.9
  },
  "luminance": 0.07398
}

Semantic roles & 50–950 ramp

primary
#5D32A7
secondary
#A4C074
accent
#DD4BA7
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D32A7

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

Preview Lab → · Contrast checker → · Palette generator →

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