#5B329F#5B329F

#5B329F is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.1% C 0.167 H 295.8°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#5B329F
RGBrgb(91, 50, 159)
HSLhsl(263, 52%, 41%)
HSVhsv(263, 69%, 62%)
CMYKcmyk(42.8%, 68.6%, 0%, 37.6%)
CIE-LABlab(31.83, 42.66, -52.60)
CIE-LCHlch(31.83, 67.72, 309.04°)
OKLaboklab(43.1% 0.0728 -0.1503)
OKLCHoklch(43.1% 0.167 295.8)
XYZxyz(11.7113, 7.0083, 33.5299)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B329F #769F32
analogous
#323F9F #5B329F #91329F
triadic
#5B329F #9F5B32 #329F5B
tetradic
#5B329F #9F323F #769F32 #329F91
square
#5B329F #9F323F #769F32 #329F91
split-complementary
#5B329F #9F9132 #3F9F32
monochromatic
#261542 #402370 #5B329F #7849C6 #9A77D4

Accessibility & contrast

On white

8.74
#5B329F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5B329F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B329F
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B329F#FFFFFF#000000##FFFFFF
##5B329F1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA2
Deuteranopia (green-blind)
#00499D
Tritanopia (blue-blind)
#494C64
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b329f;
/* rgb */ color: rgb(91, 50, 159);
/* oklch */ color: oklch(43.1% 0.167 295.8);
Tailwind
colors: {
  custom: {
    50: '#8f6dbc',
    500: '#5b329f',
    950: '#000000',
  },
}
SCSS
$custom: #5b329f;
$custom-light: #8f6dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b329f",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 159
  },
  "hsl": {
    "h": 262.569,
    "s": 52.153,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43097,
    "c": 0.16698,
    "h": 295.8
  },
  "luminance": 0.07009
}

Semantic roles & 50–950 ramp

primary
#5B329F
secondary
#A0BD70
accent
#DC4CA6
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B329F

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

Preview Lab → · Contrast checker → · Palette generator →

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