#5B219F#5B219F

#5B219F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.1% C 0.187 H 298.5°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#5B219F
RGBrgb(91, 33, 159)
HSLhsl(268, 66%, 38%)
HSVhsv(268, 79%, 62%)
CMYKcmyk(42.8%, 79.2%, 0%, 37.6%)
CIE-LABlab(28.94, 50.80, -57.31)
CIE-LCHlch(28.94, 76.58, 311.55°)
OKLaboklab(41.06% 0.0889 -0.164)
OKLCHoklch(41.06% 0.187 298.5)
XYZxyz(11.1146, 5.8149, 33.3310)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B219F #659F21
analogous
#21269F #5B219F #9A219F
triadic
#5B219F #9F5B21 #219F5B
tetradic
#5B219F #9F2126 #659F21 #219F9A
square
#5B219F #9F2126 #659F21 #219F9A
split-complementary
#5B219F #9F9A21 #269F21
monochromatic
#210C3A #3E166C #5B219F #782CD2 #985DDD

Accessibility & contrast

On white

9.71
#5B219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B219F
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B219F#FFFFFF#000000##FFFFFF
##5B219F1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#4A4460
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b219f;
/* rgb */ color: rgb(91, 33, 159);
/* oklch */ color: oklch(41.1% 0.187 298.5);
Tailwind
colors: {
  custom: {
    50: '#9064bc',
    500: '#5b219f',
    950: '#000000',
  },
}
SCSS
$custom: #5b219f;
$custom-light: #9064bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b219f",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 267.619,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41056,
    "c": 0.18653,
    "h": 298.5
  },
  "luminance": 0.05815
}

Semantic roles & 50–950 ramp

primary
#5B219F
secondary
#92C25A
accent
#E93F9B
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B219F

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

Preview Lab → · Contrast checker → · Palette generator →

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