#5B219A#5B219A

#5B219A is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.181 H 299.9°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#5B219A
RGBrgb(91, 33, 154)
HSLhsl(269, 65%, 37%)
HSVhsv(269, 79%, 60%)
CMYKcmyk(40.9%, 78.6%, 0%, 39.6%)
CIE-LABlab(28.50, 49.55, -54.98)
CIE-LCHlch(28.50, 74.01, 312.02°)
OKLaboklab(40.61% 0.0903 -0.1572)
OKLCHoklch(40.61% 0.181 299.9)
XYZxyz(10.6895, 5.6448, 31.0920)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B219A #609A21
analogous
#21249A #5B219A #98219A
triadic
#5B219A #9A5B21 #219A5B
tetradic
#5B219A #9A2124 #609A21 #219A98
square
#5B219A #9A2124 #609A21 #219A98
split-complementary
#5B219A #9A9821 #249A21
monochromatic
#1F0B35 #3D1668 #5B219A #792CCC #985ADC

Accessibility & contrast

On white

9.86
#5B219A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5B219A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B219A
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B219A#FFFFFF#000000##FFFFFF
##5B219A1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439D
Deuteranopia (green-blind)
#004298
Tritanopia (blue-blind)
#4C415D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5b219a;
/* rgb */ color: rgb(91, 33, 154);
/* oklch */ color: oklch(40.6% 0.181 299.9);
Tailwind
colors: {
  custom: {
    50: '#9063b9',
    500: '#5b219a',
    950: '#000000',
  },
}
SCSS
$custom: #5b219a;
$custom-light: #9063b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b219a",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 154
  },
  "hsl": {
    "h": 268.76,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40611,
    "c": 0.18126,
    "h": 299.9
  },
  "luminance": 0.05645
}

Semantic roles & 50–950 ramp

primary
#5B219A
secondary
#8EC057
accent
#E84097
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B219A

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

Preview Lab → · Contrast checker → · Palette generator →

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