#5B327A#5B327A

#5B327A is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.3% C 0.122 H 308.2°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#5B327A
RGBrgb(91, 50, 122)
HSLhsl(274, 42%, 34%)
HSVhsv(274, 59%, 48%)
CMYKcmyk(25.4%, 59%, 0%, 52.2%)
CIE-LABlab(29.19, 32.85, -34.01)
CIE-LCHlch(29.19, 47.28, 314.01°)
OKLaboklab(40.35% 0.0752 -0.0957)
OKLCHoklch(40.35% 0.122 308.2)
XYZxyz(8.9671, 5.9106, 19.0771)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B327A #517A32
analogous
#37327A #5B327A #7A3275
triadic
#5B327A #7A5B32 #327A5B
tetradic
#5B327A #7A3732 #517A32 #32757A
square
#5B327A #7A3732 #517A32 #32757A
split-complementary
#5B327A #757A32 #327A37
monochromatic
#1A0E23 #3B204F #5B327A #7B44A5 #9966C0

Accessibility & contrast

On white

9.62
#5B327A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5B327A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B327A
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B327A#FFFFFF#000000##FFFFFF
##5B327A1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19437C
Deuteranopia (green-blind)
#284578
Tritanopia (blue-blind)
#563F51
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b327a;
/* rgb */ color: rgb(91, 50, 122);
/* oklch */ color: oklch(40.3% 0.122 308.2);
Tailwind
colors: {
  custom: {
    50: '#8c6ca1',
    500: '#5b327a',
    950: '#000000',
  },
}
SCSS
$custom: #5b327a;
$custom-light: #8c6ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b327a",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 122
  },
  "hsl": {
    "h": 274.167,
    "s": 41.86,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40345,
    "c": 0.12167,
    "h": 308.2
  },
  "luminance": 0.0591
}

Semantic roles & 50–950 ramp

primary
#5B327A
secondary
#7FA860
accent
#D2568B
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C070F
muted
#7D7A7E

Preview Lab

Preview with #5B327A

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

Preview Lab → · Contrast checker → · Palette generator →

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