#5D328F#5D328F

#5D328F is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.1% C 0.148 H 301.6°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#5D328F
RGBrgb(93, 50, 143)
HSLhsl(268, 48%, 38%)
HSVhsv(268, 65%, 56%)
CMYKcmyk(35%, 65%, 0%, 43.9%)
CIE-LABlab(30.86, 38.78, -44.38)
CIE-LCHlch(30.86, 58.94, 311.15°)
OKLaboklab(42.07% 0.0775 -0.126)
OKLCHoklch(42.07% 0.148 301.6)
XYZxyz(10.6116, 6.5915, 26.6945)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D328F #648F32
analogous
#32358F #5D328F #8C328F
triadic
#5D328F #8F5D32 #328F5D
tetradic
#5D328F #8F3235 #648F32 #328F8C
square
#5D328F #8F3235 #648F32 #328F8C
split-complementary
#5D328F #8F8C32 #358F32
monochromatic
#221234 #402262 #5D328F #7A42BC #9A6FCD

Accessibility & contrast

On white

9.06
#5D328F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5D328F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D328F
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D328F#FFFFFF#000000##FFFFFF
##5D328F1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#10488D
Tritanopia (blue-blind)
#53465C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d328f;
/* rgb */ color: rgb(93, 50, 143);
/* oklch */ color: oklch(42.1% 0.148 301.6);
Tailwind
colors: {
  custom: {
    50: '#8f6cb0',
    500: '#5d328f',
    950: '#000000',
  },
}
SCSS
$custom: #5d328f;
$custom-light: #8f6cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d328f",
  "rgb": {
    "r": 93,
    "g": 50,
    "b": 143
  },
  "hsl": {
    "h": 267.742,
    "s": 48.187,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42073,
    "c": 0.14797,
    "h": 301.6
  },
  "luminance": 0.06592
}

Semantic roles & 50–950 ramp

primary
#5D328F
secondary
#91B468
accent
#D85099
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D328F

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

Preview Lab → · Contrast checker → · Palette generator →

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