#5B219B#5B219B

#5B219B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.182 H 299.6°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#5B219B
RGBrgb(91, 33, 155)
HSLhsl(269, 65%, 37%)
HSVhsv(269, 79%, 61%)
CMYKcmyk(41.3%, 78.7%, 0%, 39.2%)
CIE-LABlab(28.59, 49.79, -55.45)
CIE-LCHlch(28.59, 74.53, 311.92°)
OKLaboklab(40.7% 0.09 -0.1585)
OKLCHoklch(40.7% 0.182 299.6)
XYZxyz(10.7731, 5.6783, 31.5324)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B219B #619B21
analogous
#21249B #5B219B #98219B
triadic
#5B219B #9B5B21 #219B5B
tetradic
#5B219B #9B2124 #619B21 #219B98
square
#5B219B #9B2124 #619B21 #219B98
split-complementary
#5B219B #9B9821 #249B21
monochromatic
#200C36 #3D1669 #5B219B #792CCD #985ADC

Accessibility & contrast

On white

9.83
#5B219B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5B219B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B219B
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B219B#FFFFFF#000000##FFFFFF
##5B219B1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#004299
Tritanopia (blue-blind)
#4C425D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5b219b;
/* rgb */ color: rgb(91, 33, 155);
/* oklch */ color: oklch(40.7% 0.182 299.6);
Tailwind
colors: {
  custom: {
    50: '#9063b9',
    500: '#5b219b',
    950: '#000000',
  },
}
SCSS
$custom: #5b219b;
$custom-light: #9063b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b219b",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 155
  },
  "hsl": {
    "h": 268.525,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40699,
    "c": 0.18232,
    "h": 299.6
  },
  "luminance": 0.05678
}

Semantic roles & 50–950 ramp

primary
#5B219B
secondary
#8EC058
accent
#E84098
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B219B

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

Preview Lab → · Contrast checker → · Palette generator →

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