#5D327C#5D327C

#5D327C is a dark, vivid violet. Relative luminance 0.061; OKLCH L 40.7% C 0.125 H 308.7°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5D327C
RGBrgb(93, 50, 124)
HSLhsl(275, 43%, 34%)
HSVhsv(275, 60%, 49%)
CMYKcmyk(25%, 59.7%, 0%, 51.4%)
CIE-LABlab(29.57, 33.90, -34.63)
CIE-LCHlch(29.57, 48.46, 314.39°)
OKLaboklab(40.73% 0.078 -0.0974)
OKLCHoklch(40.73% 0.125 308.7)
XYZxyz(9.2922, 6.0637, 19.7458)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D327C #517C32
analogous
#38327C #5D327C #7C3276
triadic
#5D327C #7C5D32 #327C5D
tetradic
#5D327C #7C3832 #517C32 #32767C
square
#5D327C #7C3832 #517C32 #32767C
split-complementary
#5D327C #767C32 #327C38
monochromatic
#1C0F25 #3C2050 #5D327C #7E44A8 #9C67C2

Accessibility & contrast

On white

9.49
#5D327C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5D327C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D327C
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D327C#FFFFFF#000000##FFFFFF
##5D327C1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18447E
Deuteranopia (green-blind)
#29467A
Tritanopia (blue-blind)
#594052
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d327c;
/* rgb */ color: rgb(93, 50, 124);
/* oklch */ color: oklch(40.7% 0.125 308.7);
Tailwind
colors: {
  custom: {
    50: '#8d6ca2',
    500: '#5d327c',
    950: '#000000',
  },
}
SCSS
$custom: #5d327c;
$custom-light: #8d6ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d327c",
  "rgb": {
    "r": 93,
    "g": 50,
    "b": 124
  },
  "hsl": {
    "h": 274.865,
    "s": 42.529,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40727,
    "c": 0.12483,
    "h": 308.7
  },
  "luminance": 0.06064
}

Semantic roles & 50–950 ramp

primary
#5D327C
secondary
#7FA961
accent
#D2558A
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5D327C

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

Preview Lab → · Contrast checker → · Palette generator →

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