#5B1166#5B1166

#5B1166 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.147 H 322.0°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#5B1166
RGBrgb(91, 17, 102)
HSLhsl(292, 71%, 23%)
HSVhsv(292, 83%, 40%)
CMYKcmyk(10.8%, 83.3%, 0%, 60%)
CIE-LABlab(22.25, 43.85, -32.27)
CIE-LCHlch(22.25, 54.44, 323.65°)
OKLaboklab(34.92% 0.1158 -0.0904)
OKLCHoklch(34.92% 0.147 322)
XYZxyz(6.9129, 3.5848, 12.8956)
Luminance0.0358 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1166 #1C6611
analogous
#301166 #5B1166 #661146
triadic
#5B1166 #665B11 #11665B
tetradic
#5B1166 #663011 #1C6611 #114666
square
#5B1166 #663011 #1C6611 #114666
split-complementary
#5B1166 #466611 #116630
monochromatic
#17041A #2C0832 #5B1166 #8A1A9A #B922CF

Accessibility & contrast

On white

12.23
#5B1166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5B1166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1166
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1166#FFFFFF#000000##FFFFFF
##5B11661.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003068
Deuteranopia (green-blind)
#1E3864
Tritanopia (blue-blind)
#5C233C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b1166;
/* rgb */ color: rgb(91, 17, 102);
/* oklch */ color: oklch(34.9% 0.147 322.0);
Tailwind
colors: {
  custom: {
    50: '#8d5a92',
    500: '#5b1166',
    950: '#000000',
  },
}
SCSS
$custom: #5b1166;
$custom-light: #8d5a92;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1166",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 292.235,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.34917,
    "c": 0.14687,
    "h": 322
  },
  "luminance": 0.03584
}

Semantic roles & 50–950 ramp

primary
#5B1166
secondary
#429E35
accent
#EE3A51
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B1166

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

Preview Lab → · Contrast checker → · Palette generator →

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