#5B329B#5B329B

#5B329B is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.8% C 0.162 H 296.9°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#5B329B
RGBrgb(91, 50, 155)
HSLhsl(263, 51%, 40%)
HSVhsv(263, 68%, 61%)
CMYKcmyk(41.3%, 67.7%, 0%, 39.2%)
CIE-LABlab(31.51, 41.57, -50.68)
CIE-LCHlch(31.51, 65.54, 309.36°)
OKLaboklab(42.77% 0.0734 -0.1446)
OKLCHoklch(42.77% 0.162 296.9)
XYZxyz(11.3698, 6.8717, 31.7313)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B329B #729B32
analogous
#323D9B #5B329B #90329B
triadic
#5B329B #9B5B32 #329B5B
tetradic
#5B329B #9B323D #729B32 #329B90
square
#5B329B #9B323D #729B32 #329B90
split-complementary
#5B329B #9B9032 #3D9B32
monochromatic
#25143E #40236D #5B329B #7747C4 #9975D2

Accessibility & contrast

On white

8.84
#5B329B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5B329B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B329B
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B329B#FFFFFF#000000##FFFFFF
##5B329B1.008.842.378.84
#FFFFFF8.841.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9E
Deuteranopia (green-blind)
#004999
Tritanopia (blue-blind)
#4B4B62
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b329b;
/* rgb */ color: rgb(91, 50, 155);
/* oklch */ color: oklch(42.8% 0.162 296.9);
Tailwind
colors: {
  custom: {
    50: '#8f6db9',
    500: '#5b329b',
    950: '#000000',
  },
}
SCSS
$custom: #5b329b;
$custom-light: #8f6db9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b329b",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 155
  },
  "hsl": {
    "h": 263.429,
    "s": 51.22,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42774,
    "c": 0.16217,
    "h": 296.9
  },
  "luminance": 0.06872
}

Semantic roles & 50–950 ramp

primary
#5B329B
secondary
#9DBB6E
accent
#DB4DA3
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B329B

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

Preview Lab → · Contrast checker → · Palette generator →

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