#5B2192#5B2192

#5B2192 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.173 H 302.3°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#5B2192
RGBrgb(91, 33, 146)
HSLhsl(271, 63%, 35%)
HSVhsv(271, 77%, 57%)
CMYKcmyk(37.7%, 77.4%, 0%, 42.7%)
CIE-LABlab(27.81, 47.56, -51.19)
CIE-LCHlch(27.81, 69.87, 312.89°)
OKLaboklab(39.92% 0.0924 -0.146)
OKLCHoklch(39.92% 0.173 302.3)
XYZxyz(10.0453, 5.3872, 27.6992)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2192 #589221
analogous
#222192 #5B2192 #922191
triadic
#5B2192 #925B21 #21925B
tetradic
#5B2192 #922221 #589221 #219192
square
#5B2192 #922221 #589221 #219192
split-complementary
#5B2192 #919221 #219222
monochromatic
#1D0A2E #3C1660 #5B2192 #7A2CC4 #9855D9

Accessibility & contrast

On white

10.11
#5B2192 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2192
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2192#FFFFFF#000000##FFFFFF
##5B21921.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004195
Deuteranopia (green-blind)
#004190
Tritanopia (blue-blind)
#4F3E58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b2192;
/* rgb */ color: rgb(91, 33, 146);
/* oklch */ color: oklch(39.9% 0.173 302.3);
Tailwind
colors: {
  custom: {
    50: '#8f63b3',
    500: '#5b2192',
    950: '#000000',
  },
}
SCSS
$custom: #5b2192;
$custom-light: #8f63b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2192",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 146
  },
  "hsl": {
    "h": 270.796,
    "s": 63.128,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39916,
    "c": 0.17282,
    "h": 302.3
  },
  "luminance": 0.05387
}

Semantic roles & 50–950 ramp

primary
#5B2192
secondary
#86BC53
accent
#E64292
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2192

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

Preview Lab → · Contrast checker → · Palette generator →

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