#5B1996#5B1996

#5B1996 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.5% C 0.185 H 302.0°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#5B1996
RGBrgb(91, 25, 150)
HSLhsl(272, 71%, 34%)
HSVhsv(272, 83%, 59%)
CMYKcmyk(39.3%, 83.3%, 0%, 41.2%)
CIE-LABlab(27.08, 51.66, -54.85)
CIE-LCHlch(27.08, 75.35, 313.28°)
OKLaboklab(39.51% 0.0978 -0.1567)
OKLCHoklch(39.51% 0.185 302)
XYZxyz(10.1657, 5.1214, 29.3012)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1996 #549619
analogous
#1C1996 #5B1996 #961993
triadic
#5B1996 #965B19 #19965B
tetradic
#5B1996 #961C19 #549619 #199396
square
#5B1996 #961C19 #549619 #199396
split-complementary
#5B1996 #939619 #19961C
monochromatic
#1B082D #3B1062 #5B1996 #7B22CA #9949E1

Accessibility & contrast

On white

10.37
#5B1996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5B1996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1996
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1996#FFFFFF#000000##FFFFFF
##5B19961.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003F94
Tritanopia (blue-blind)
#4E3C59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b1996;
/* rgb */ color: rgb(91, 25, 150);
/* oklch */ color: oklch(39.5% 0.185 302.0);
Tailwind
colors: {
  custom: {
    50: '#9060b6',
    500: '#5b1996',
    950: '#000000',
  },
}
SCSS
$custom: #5b1996;
$custom-light: #9060b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1996",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 271.68,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39512,
    "c": 0.18474,
    "h": 302
  },
  "luminance": 0.05121
}

Semantic roles & 50–950 ramp

primary
#5B1996
secondary
#82C249
accent
#EE3A8F
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B1996

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

Preview Lab → · Contrast checker → · Palette generator →

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