#5B219D#5B219D

#5B219D is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.9% C 0.184 H 299.0°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#5B219D
RGBrgb(91, 33, 157)
HSLhsl(268, 65%, 37%)
HSVhsv(268, 79%, 62%)
CMYKcmyk(42%, 79%, 0%, 38.4%)
CIE-LABlab(28.76, 50.30, -56.38)
CIE-LCHlch(28.76, 75.55, 311.74°)
OKLaboklab(40.88% 0.0895 -0.1613)
OKLCHoklch(40.88% 0.184 299)
XYZxyz(10.9425, 5.7460, 32.4243)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B219D #639D21
analogous
#21259D #5B219D #99219D
triadic
#5B219D #9D5B21 #219D5B
tetradic
#5B219D #9D2125 #639D21 #219D99
square
#5B219D #9D2125 #639D21 #219D99
split-complementary
#5B219D #9D9921 #259D21
monochromatic
#200C38 #3E166A #5B219D #782CD0 #985CDD

Accessibility & contrast

On white

9.77
#5B219D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5B219D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B219D
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B219D#FFFFFF#000000##FFFFFF
##5B219D1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00439B
Tritanopia (blue-blind)
#4B435F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b219d;
/* rgb */ color: rgb(91, 33, 157);
/* oklch */ color: oklch(40.9% 0.184 299.0);
Tailwind
colors: {
  custom: {
    50: '#9063bb',
    500: '#5b219d',
    950: '#000000',
  },
}
SCSS
$custom: #5b219d;
$custom-light: #9063bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b219d",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 157
  },
  "hsl": {
    "h": 268.065,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40877,
    "c": 0.18443,
    "h": 299
  },
  "luminance": 0.05746
}

Semantic roles & 50–950 ramp

primary
#5B219D
secondary
#90C159
accent
#E84099
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B219D

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

Preview Lab → · Contrast checker → · Palette generator →

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