#5B2193#5B2193

#5B2193 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.174 H 302.0°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#5B2193
RGBrgb(91, 33, 147)
HSLhsl(271, 63%, 35%)
HSVhsv(271, 78%, 58%)
CMYKcmyk(38.1%, 77.6%, 0%, 42.4%)
CIE-LABlab(27.89, 47.81, -51.67)
CIE-LCHlch(27.89, 70.39, 312.78°)
OKLaboklab(40% 0.0922 -0.1474)
OKLCHoklch(40% 0.174 302)
XYZxyz(10.1234, 5.4184, 28.1106)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2193 #599321
analogous
#222193 #5B2193 #932192
triadic
#5B2193 #935B21 #21935B
tetradic
#5B2193 #932221 #599321 #219293
square
#5B2193 #932221 #599321 #219293
split-complementary
#5B2193 #929321 #219322
monochromatic
#1D0B2F #3C1661 #5B2193 #7A2CC5 #9855D9

Accessibility & contrast

On white

10.08
#5B2193 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5B2193 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2193
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2193#FFFFFF#000000##FFFFFF
##5B21931.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004196
Deuteranopia (green-blind)
#004191
Tritanopia (blue-blind)
#4F3F59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b2193;
/* rgb */ color: rgb(91, 33, 147);
/* oklch */ color: oklch(40.0% 0.174 302.0);
Tailwind
colors: {
  custom: {
    50: '#8f63b4',
    500: '#5b2193',
    950: '#000000',
  },
}
SCSS
$custom: #5b2193;
$custom-light: #8f63b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2193",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 147
  },
  "hsl": {
    "h": 270.526,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40001,
    "c": 0.17388,
    "h": 302
  },
  "luminance": 0.05418
}

Semantic roles & 50–950 ramp

primary
#5B2193
secondary
#87BD53
accent
#E64192
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2193

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

Preview Lab → · Contrast checker → · Palette generator →

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