#5B116A#5B116A

#5B116A is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.150 H 320.0°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#5B116A
RGBrgb(91, 17, 106)
HSLhsl(290, 72%, 24%)
HSVhsv(290, 84%, 42%)
CMYKcmyk(14.2%, 84%, 0%, 58.4%)
CIE-LABlab(22.54, 44.64, -34.42)
CIE-LCHlch(22.54, 56.37, 322.36°)
OKLaboklab(35.21% 0.1152 -0.0967)
OKLCHoklch(35.21% 0.15 320)
XYZxyz(7.1160, 3.6660, 13.9657)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B116A #206A11
analogous
#2F116A #5B116A #6A114D
triadic
#5B116A #6A5B11 #116A5B
tetradic
#5B116A #6A2F11 #206A11 #114D6A
square
#5B116A #6A2F11 #206A11 #114D6A
split-complementary
#5B116A #4D6A11 #116A2F
monochromatic
#17041A #2E0935 #5B116A #88199F #B622D3

Accessibility & contrast

On white

12.12
#5B116A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5B116A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B116A
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B116A#FFFFFF#000000##FFFFFF
##5B116A1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#1A3868
Tritanopia (blue-blind)
#5B253E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5b116a;
/* rgb */ color: rgb(91, 17, 106);
/* oklch */ color: oklch(35.2% 0.150 320.0);
Tailwind
colors: {
  custom: {
    50: '#8d5a95',
    500: '#5b116a',
    950: '#000000',
  },
}
SCSS
$custom: #5b116a;
$custom-light: #8d5a95;
$custom-dark: #000000;
JSON
{
  "hex": "#5b116a",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 106
  },
  "hsl": {
    "h": 289.888,
    "s": 72.358,
    "l": 24.118
  },
  "oklch": {
    "l": 0.35211,
    "c": 0.15041,
    "h": 320
  },
  "luminance": 0.03666
}

Semantic roles & 50–950 ramp

primary
#5B116A
secondary
#47A235
accent
#EF3957
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5B116A

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

Preview Lab → · Contrast checker → · Palette generator →

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