#5D32A5#5D32A5

#5D32A5 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.8% C 0.174 H 295.4°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#5D32A5
RGBrgb(93, 50, 165)
HSLhsl(262, 53%, 42%)
HSVhsv(262, 70%, 65%)
CMYKcmyk(43.6%, 69.7%, 0%, 35.3%)
CIE-LABlab(32.53, 44.69, -55.06)
CIE-LCHlch(32.53, 70.91, 309.06°)
OKLaboklab(43.81% 0.0748 -0.1574)
OKLCHoklch(43.81% 0.174 295.4)
XYZxyz(12.4445, 7.3247, 36.3482)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D32A5 #7AA532
analogous
#3241A5 #5D32A5 #9732A5
triadic
#5D32A5 #A55D32 #32A55D
tetradic
#5D32A5 #A53241 #7AA532 #32A597
square
#5D32A5 #A53241 #7AA532 #32A597
split-complementary
#5D32A5 #A59732 #41A532
monochromatic
#281647 #432476 #5D32A5 #7A4CC9 #9D7BD7

Accessibility & contrast

On white

8.52
#5D32A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5D32A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D32A5
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D32A5#FFFFFF#000000##FFFFFF
##5D32A51.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA8
Deuteranopia (green-blind)
#004BA3
Tritanopia (blue-blind)
#4A4E67
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5d32a5;
/* rgb */ color: rgb(93, 50, 165);
/* oklch */ color: oklch(43.8% 0.174 295.4);
Tailwind
colors: {
  custom: {
    50: '#916dc1',
    500: '#5d32a5',
    950: '#000000',
  },
}
SCSS
$custom: #5d32a5;
$custom-light: #916dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d32a5",
  "rgb": {
    "r": 93,
    "g": 50,
    "b": 165
  },
  "hsl": {
    "h": 262.435,
    "s": 53.488,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43807,
    "c": 0.17428,
    "h": 295.4
  },
  "luminance": 0.07325
}

Semantic roles & 50–950 ramp

primary
#5D32A5
secondary
#A3BF73
accent
#DD4BA6
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D32A5

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

Preview Lab → · Contrast checker → · Palette generator →

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