#5B2199#5B2199

#5B2199 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.180 H 300.2°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#5B2199
RGBrgb(91, 33, 153)
HSLhsl(269, 65%, 36%)
HSVhsv(269, 78%, 60%)
CMYKcmyk(40.5%, 78.4%, 0%, 40%)
CIE-LABlab(28.41, 49.30, -54.51)
CIE-LCHlch(28.41, 73.50, 312.12°)
OKLaboklab(40.52% 0.0906 -0.1558)
OKLCHoklch(40.52% 0.18 300.2)
XYZxyz(10.6066, 5.6117, 30.6552)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2199 #5F9921
analogous
#212399 #5B2199 #972199
triadic
#5B2199 #995B21 #21995B
tetradic
#5B2199 #992123 #5F9921 #219997
square
#5B2199 #992123 #5F9921 #219997
split-complementary
#5B2199 #999721 #239921
monochromatic
#1F0B34 #3D1667 #5B2199 #792CCB #9859DB

Accessibility & contrast

On white

9.89
#5B2199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5B2199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2199
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2199#FFFFFF#000000##FFFFFF
##5B21991.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#4C415C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5b2199;
/* rgb */ color: rgb(91, 33, 153);
/* oklch */ color: oklch(40.5% 0.180 300.2);
Tailwind
colors: {
  custom: {
    50: '#9063b8',
    500: '#5b2199',
    950: '#000000',
  },
}
SCSS
$custom: #5b2199;
$custom-light: #9063b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2199",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 269,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40523,
    "c": 0.18022,
    "h": 300.2
  },
  "luminance": 0.05612
}

Semantic roles & 50–950 ramp

primary
#5B2199
secondary
#8DBF56
accent
#E84097
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2199

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

Preview Lab → · Contrast checker → · Palette generator →

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