#5F329D#5F329D

#5F329D is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.165 H 298.5°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#5F329D
RGBrgb(95, 50, 157)
HSLhsl(265, 52%, 41%)
HSVhsv(265, 68%, 62%)
CMYKcmyk(39.5%, 68.2%, 0%, 38.4%)
CIE-LABlab(32.14, 42.93, -50.85)
CIE-LCHlch(32.14, 66.55, 310.17°)
OKLaboklab(43.38% 0.0789 -0.145)
OKLCHoklch(43.38% 0.165 298.5)
XYZxyz(11.9442, 7.1483, 32.6422)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F329D #709D32
analogous
#323A9D #5F329D #94329D
triadic
#5F329D #9D5F32 #329D5F
tetradic
#5F329D #9D323A #709D32 #329D94
square
#5F329D #9D323A #709D32 #329D94
split-complementary
#5F329D #9D9432 #3A9D32
monochromatic
#271440 #43236F #5F329D #7C48C5 #9D76D3

Accessibility & contrast

On white

8.64
#5F329D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5F329D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F329D
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F329D#FFFFFF#000000##FFFFFF
##5F329D1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#004B9B
Tritanopia (blue-blind)
#504B63
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f329d;
/* rgb */ color: rgb(95, 50, 157);
/* oklch */ color: oklch(43.4% 0.165 298.5);
Tailwind
colors: {
  custom: {
    50: '#926dbb',
    500: '#5f329d',
    950: '#000000',
  },
}
SCSS
$custom: #5f329d;
$custom-light: #926dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f329d",
  "rgb": {
    "r": 95,
    "g": 50,
    "b": 157
  },
  "hsl": {
    "h": 265.234,
    "s": 51.691,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43382,
    "c": 0.16505,
    "h": 298.5
  },
  "luminance": 0.07148
}

Semantic roles & 50–950 ramp

primary
#5F329D
secondary
#9BBC6F
accent
#DB4D9F
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5F329D

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

Preview Lab → · Contrast checker → · Palette generator →

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