#5B2C9A#5B2C9A

#5B2C9A is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.169 H 298.3°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#5B2C9A
RGBrgb(91, 44, 154)
HSLhsl(266, 56%, 39%)
HSVhsv(266, 71%, 60%)
CMYKcmyk(40.9%, 71.4%, 0%, 39.6%)
CIE-LABlab(30.30, 44.44, -52.04)
CIE-LCHlch(30.30, 68.43, 310.49°)
OKLaboklab(41.88% 0.0799 -0.1486)
OKLCHoklch(41.88% 0.169 298.3)
XYZxyz(11.0463, 6.3584, 31.2109)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2C9A #6B9A2C
analogous
#2C349A #5B2C9A #922C9A
triadic
#5B2C9A #9A5B2C #2C9A5B
tetradic
#5B2C9A #9A2C34 #6B9A2C #2C9A92
square
#5B2C9A #9A2C34 #6B9A2C #2C9A92
split-complementary
#5B2C9A #9A922C #349A2C
monochromatic
#23113B #3F1E6A #5B2C9A #773CC7 #996CD5

Accessibility & contrast

On white

9.24
#5B2C9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5B2C9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2C9A
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2C9A#FFFFFF#000000##FFFFFF
##5B2C9A1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004698
Tritanopia (blue-blind)
#4C4760
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b2c9a;
/* rgb */ color: rgb(91, 44, 154);
/* oklch */ color: oklch(41.9% 0.169 298.3);
Tailwind
colors: {
  custom: {
    50: '#8f69b9',
    500: '#5b2c9a',
    950: '#000000',
  },
}
SCSS
$custom: #5b2c9a;
$custom-light: #8f69b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2c9a",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 154
  },
  "hsl": {
    "h": 265.636,
    "s": 55.556,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41882,
    "c": 0.16875,
    "h": 298.3
  },
  "luminance": 0.06359
}

Semantic roles & 50–950 ramp

primary
#5B2C9A
secondary
#97BC66
accent
#DF499F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2C9A

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

Preview Lab → · Contrast checker → · Palette generator →

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