#5B327D#5B327D

#5B327D is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.5% C 0.125 H 306.9°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#5B327D
RGBrgb(91, 50, 125)
HSLhsl(273, 43%, 34%)
HSVhsv(273, 60%, 49%)
CMYKcmyk(27.2%, 60%, 0%, 51%)
CIE-LABlab(29.38, 33.61, -35.59)
CIE-LCHlch(29.38, 48.95, 313.37°)
OKLaboklab(40.55% 0.0753 -0.1003)
OKLCHoklch(40.55% 0.125 306.9)
XYZxyz(9.1559, 5.9861, 20.0712)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B327D #547D32
analogous
#36327D #5B327D #7D327A
triadic
#5B327D #7D5B32 #327D5B
tetradic
#5B327D #7D3632 #547D32 #327A7D
square
#5B327D #7D3632 #547D32 #327A7D
split-complementary
#5B327D #7A7D32 #327D36
monochromatic
#1B0F26 #3B2151 #5B327D #7B43A9 #9967C2

Accessibility & contrast

On white

9.56
#5B327D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5B327D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B327D
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B327D#FFFFFF#000000##FFFFFF
##5B327D1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15447F
Deuteranopia (green-blind)
#26467B
Tritanopia (blue-blind)
#564052
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b327d;
/* rgb */ color: rgb(91, 50, 125);
/* oklch */ color: oklch(40.5% 0.125 306.9);
Tailwind
colors: {
  custom: {
    50: '#8c6ca3',
    500: '#5b327d',
    950: '#000000',
  },
}
SCSS
$custom: #5b327d;
$custom-light: #8c6ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b327d",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 125
  },
  "hsl": {
    "h": 272.8,
    "s": 42.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40547,
    "c": 0.12539,
    "h": 306.9
  },
  "luminance": 0.05986
}

Semantic roles & 50–950 ramp

primary
#5B327D
secondary
#82AA61
accent
#D3558E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5B327D

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

Preview Lab → · Contrast checker → · Palette generator →

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