#5B1160#5B1160

#5B1160 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.142 H 325.2°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#5B1160
RGBrgb(91, 17, 96)
HSLhsl(296, 70%, 22%)
HSVhsv(296, 82%, 38%)
CMYKcmyk(5.2%, 82.3%, 0%, 62.4%)
CIE-LABlab(21.84, 42.70, -28.99)
CIE-LCHlch(21.84, 51.61, 325.83°)
OKLaboklab(34.49% 0.1164 -0.0808)
OKLCHoklch(34.49% 0.142 325.2)
XYZxyz(6.6260, 3.4700, 11.3848)
Luminance0.0347 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1160 #166011
analogous
#341160 #5B1160 #60113D
triadic
#5B1160 #605B11 #11605B
tetradic
#5B1160 #603411 #166011 #113D60
square
#5B1160 #603411 #166011 #113D60
split-complementary
#5B1160 #3D6011 #116034
monochromatic
#19051A #2A082C #5B1160 #8C1A94 #BE23C8

Accessibility & contrast

On white

12.40
#5B1160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5B1160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1160
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1160#FFFFFF#000000##FFFFFF
##5B11601.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F62
Deuteranopia (green-blind)
#23375E
Tritanopia (blue-blind)
#5D2038
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b1160;
/* rgb */ color: rgb(91, 17, 96);
/* oklch */ color: oklch(34.5% 0.142 325.2);
Tailwind
colors: {
  custom: {
    50: '#8c598d',
    500: '#5b1160',
    950: '#000000',
  },
}
SCSS
$custom: #5b1160;
$custom-light: #8c598d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1160",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 96
  },
  "hsl": {
    "h": 296.203,
    "s": 69.912,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34493,
    "c": 0.14164,
    "h": 325.2
  },
  "luminance": 0.0347
}

Semantic roles & 50–950 ramp

primary
#5B1160
secondary
#3B9934
accent
#ED3B46
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B1160

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

Preview Lab → · Contrast checker → · Palette generator →

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