#5D329B#5D329B

#5D329B is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.0% C 0.162 H 298.0°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#5D329B
RGBrgb(93, 50, 155)
HSLhsl(265, 51%, 40%)
HSVhsv(265, 68%, 61%)
CMYKcmyk(40%, 67.7%, 0%, 39.2%)
CIE-LABlab(31.75, 41.98, -50.29)
CIE-LCHlch(31.75, 65.51, 309.86°)
OKLaboklab(43% 0.0763 -0.1434)
OKLCHoklch(43% 0.162 298)
XYZxyz(11.5697, 6.9747, 31.7407)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D329B #709B32
analogous
#323C9B #5D329B #91329B
triadic
#5D329B #9B5D32 #329B5D
tetradic
#5D329B #9B323C #709B32 #329B91
square
#5D329B #9B323C #709B32 #329B91
split-complementary
#5D329B #9B9132 #3C9B32
monochromatic
#25143E #41236D #5D329B #7A47C4 #9B75D2

Accessibility & contrast

On white

8.77
#5D329B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5D329B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D329B
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D329B#FFFFFF#000000##FFFFFF
##5D329B1.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9E
Deuteranopia (green-blind)
#004A99
Tritanopia (blue-blind)
#4E4B62
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d329b;
/* rgb */ color: rgb(93, 50, 155);
/* oklch */ color: oklch(43.0% 0.162 298.0);
Tailwind
colors: {
  custom: {
    50: '#906db9',
    500: '#5d329b',
    950: '#000000',
  },
}
SCSS
$custom: #5d329b;
$custom-light: #906db9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d329b",
  "rgb": {
    "r": 93,
    "g": 50,
    "b": 155
  },
  "hsl": {
    "h": 264.571,
    "s": 51.22,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42998,
    "c": 0.16241,
    "h": 298
  },
  "luminance": 0.06975
}

Semantic roles & 50–950 ramp

primary
#5D329B
secondary
#9BBB6E
accent
#DB4DA1
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D329B

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

Preview Lab → · Contrast checker → · Palette generator →

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