#5B2191#5B2191

#5B2191 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.172 H 302.6°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#5B2191
RGBrgb(91, 33, 145)
HSLhsl(271, 63%, 35%)
HSVhsv(271, 77%, 57%)
CMYKcmyk(37.2%, 77.2%, 0%, 43.1%)
CIE-LABlab(27.73, 47.31, -50.71)
CIE-LCHlch(27.73, 69.36, 313.02°)
OKLaboklab(39.83% 0.0927 -0.1446)
OKLCHoklch(39.83% 0.172 302.6)
XYZxyz(9.9679, 5.3562, 27.2913)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2191 #579121
analogous
#232191 #5B2191 #91218F
triadic
#5B2191 #915B21 #21915B
tetradic
#5B2191 #912321 #579121 #218F91
square
#5B2191 #912321 #579121 #218F91
split-complementary
#5B2191 #8F9121 #219123
monochromatic
#1C0A2D #3C165F #5B2191 #7A2CC3 #9954D8

Accessibility & contrast

On white

10.14
#5B2191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5B2191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2191
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2191#FFFFFF#000000##FFFFFF
##5B21911.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004094
Deuteranopia (green-blind)
#00418F
Tritanopia (blue-blind)
#503E58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b2191;
/* rgb */ color: rgb(91, 33, 145);
/* oklch */ color: oklch(39.8% 0.172 302.6);
Tailwind
colors: {
  custom: {
    50: '#8f63b2',
    500: '#5b2191',
    950: '#000000',
  },
}
SCSS
$custom: #5b2191;
$custom-light: #8f63b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2191",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 145
  },
  "hsl": {
    "h": 271.071,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3983,
    "c": 0.17176,
    "h": 302.6
  },
  "luminance": 0.05356
}

Semantic roles & 50–950 ramp

primary
#5B2191
secondary
#85BC52
accent
#E64291
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2191

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

Preview Lab → · Contrast checker → · Palette generator →

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