#5D327D#5D327D

#5D327D is a dark, vivid violet. Relative luminance 0.061; OKLCH L 40.8% C 0.126 H 308.3°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#5D327D
RGBrgb(93, 50, 125)
HSLhsl(274, 43%, 34%)
HSVhsv(274, 60%, 49%)
CMYKcmyk(25.6%, 60%, 0%, 51%)
CIE-LABlab(29.64, 34.15, -35.16)
CIE-LCHlch(29.64, 49.01, 314.17°)
OKLaboklab(40.79% 0.0781 -0.099)
OKLCHoklch(40.79% 0.126 308.3)
XYZxyz(9.3557, 6.0892, 20.0805)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D327D #527D32
analogous
#38327D #5D327D #7D3278
triadic
#5D327D #7D5D32 #327D5D
tetradic
#5D327D #7D3832 #527D32 #32787D
square
#5D327D #7D3832 #527D32 #32787D
split-complementary
#5D327D #787D32 #327D38
monochromatic
#1C0F26 #3C2151 #5D327D #7E43A9 #9B67C2

Accessibility & contrast

On white

9.47
#5D327D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5D327D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D327D
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D327D#FFFFFF#000000##FFFFFF
##5D327D1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16447F
Deuteranopia (green-blind)
#28467B
Tritanopia (blue-blind)
#584052
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d327d;
/* rgb */ color: rgb(93, 50, 125);
/* oklch */ color: oklch(40.8% 0.126 308.3);
Tailwind
colors: {
  custom: {
    50: '#8d6ca3',
    500: '#5d327d',
    950: '#000000',
  },
}
SCSS
$custom: #5d327d;
$custom-light: #8d6ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d327d",
  "rgb": {
    "r": 93,
    "g": 50,
    "b": 125
  },
  "hsl": {
    "h": 274.4,
    "s": 42.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40794,
    "c": 0.12604,
    "h": 308.3
  },
  "luminance": 0.06089
}

Semantic roles & 50–950 ramp

primary
#5D327D
secondary
#80AA61
accent
#D3558B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5D327D

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

Preview Lab → · Contrast checker → · Palette generator →

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