#5B219E#5B219E

#5B219E is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.185 H 298.7°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#5B219E
RGBrgb(91, 33, 158)
HSLhsl(268, 65%, 37%)
HSVhsv(268, 79%, 62%)
CMYKcmyk(42.4%, 79.1%, 0%, 38%)
CIE-LABlab(28.85, 50.55, -56.84)
CIE-LCHlch(28.85, 76.07, 311.64°)
OKLaboklab(40.97% 0.0892 -0.1626)
OKLCHoklch(40.97% 0.185 298.7)
XYZxyz(11.0282, 5.7803, 32.8758)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B219E #649E21
analogous
#21269E #5B219E #9A219E
triadic
#5B219E #9E5B21 #219E5B
tetradic
#5B219E #9E2126 #649E21 #219E9A
square
#5B219E #9E2126 #649E21 #219E9A
split-complementary
#5B219E #9E9A21 #269E21
monochromatic
#210C39 #3E166B #5B219E #782CD1 #985CDD

Accessibility & contrast

On white

9.74
#5B219E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5B219E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B219E
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B219E#FFFFFF#000000##FFFFFF
##5B219E1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#4A435F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b219e;
/* rgb */ color: rgb(91, 33, 158);
/* oklch */ color: oklch(41.0% 0.185 298.7);
Tailwind
colors: {
  custom: {
    50: '#9064bc',
    500: '#5b219e',
    950: '#000000',
  },
}
SCSS
$custom: #5b219e;
$custom-light: #9064bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b219e",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 267.84,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40966,
    "c": 0.18548,
    "h": 298.7
  },
  "luminance": 0.0578
}

Semantic roles & 50–950 ramp

primary
#5B219E
secondary
#91C159
accent
#E83F9A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B219E

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

Preview Lab → · Contrast checker → · Palette generator →

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