#5D327B#5D327B

#5D327B is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.7% C 0.124 H 309.1°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#5D327B
RGBrgb(93, 50, 123)
HSLhsl(275, 42%, 34%)
HSVhsv(275, 59%, 48%)
CMYKcmyk(24.4%, 59.3%, 0%, 51.8%)
CIE-LABlab(29.51, 33.65, -34.10)
CIE-LCHlch(29.51, 47.91, 314.62°)
OKLaboklab(40.66% 0.078 -0.0959)
OKLCHoklch(40.66% 0.124 309.1)
XYZxyz(9.2293, 6.0386, 19.4144)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D327B #507B32
analogous
#38327B #5D327B #7B3275
triadic
#5D327B #7B5D32 #327B5D
tetradic
#5D327B #7B3832 #507B32 #32757B
square
#5D327B #7B3832 #507B32 #32757B
split-complementary
#5D327B #757B32 #327B38
monochromatic
#1B0F24 #3C204F #5D327B #7E44A7 #9C66C1

Accessibility & contrast

On white

9.51
#5D327B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D327B
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D327B#FFFFFF#000000##FFFFFF
##5D327B1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19447D
Deuteranopia (green-blind)
#294679
Tritanopia (blue-blind)
#593F51
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d327b;
/* rgb */ color: rgb(93, 50, 123);
/* oklch */ color: oklch(40.7% 0.124 309.1);
Tailwind
colors: {
  custom: {
    50: '#8d6ca1',
    500: '#5d327b',
    950: '#000000',
  },
}
SCSS
$custom: #5d327b;
$custom-light: #8d6ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d327b",
  "rgb": {
    "r": 93,
    "g": 50,
    "b": 123
  },
  "hsl": {
    "h": 275.342,
    "s": 42.197,
    "l": 33.922
  },
  "oklch": {
    "l": 0.4066,
    "c": 0.12361,
    "h": 309.1
  },
  "luminance": 0.06038
}

Semantic roles & 50–950 ramp

primary
#5D327B
secondary
#7EA960
accent
#D25689
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5D327B

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

Preview Lab → · Contrast checker → · Palette generator →

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