#5B2196#5B2196

#5B2196 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.177 H 301.1°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#5B2196
RGBrgb(91, 33, 150)
HSLhsl(270, 64%, 36%)
HSVhsv(270, 78%, 59%)
CMYKcmyk(39.3%, 78%, 0%, 41.2%)
CIE-LABlab(28.15, 48.55, -53.10)
CIE-LCHlch(28.15, 71.95, 312.44°)
OKLaboklab(40.26% 0.0914 -0.1516)
OKLCHoklch(40.26% 0.177 301.1)
XYZxyz(10.3619, 5.5138, 29.3666)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2196 #5C9621
analogous
#212196 #5B2196 #952196
triadic
#5B2196 #965B21 #21965B
tetradic
#5B2196 #962121 #5C9621 #219695
square
#5B2196 #962121 #5C9621 #219695
split-complementary
#5B2196 #969521 #219621
monochromatic
#1E0B32 #3D1664 #5B2196 #792CC8 #9857DA

Accessibility & contrast

On white

9.99
#5B2196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5B2196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2196
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2196#FFFFFF#000000##FFFFFF
##5B21961.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#4E405B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b2196;
/* rgb */ color: rgb(91, 33, 150);
/* oklch */ color: oklch(40.3% 0.177 301.1);
Tailwind
colors: {
  custom: {
    50: '#8f63b6',
    500: '#5b2196',
    950: '#000000',
  },
}
SCSS
$custom: #5b2196;
$custom-light: #8f63b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2196",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 269.744,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4026,
    "c": 0.17705,
    "h": 301.1
  },
  "luminance": 0.05514
}

Semantic roles & 50–950 ramp

primary
#5B2196
secondary
#8ABE55
accent
#E74195
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2196

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

Preview Lab → · Contrast checker → · Palette generator →

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