#5B115A#5B115A

#5B115A is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.137 H 328.7°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#5B115A
RGBrgb(91, 17, 90)
HSLhsl(301, 69%, 21%)
HSVhsv(301, 81%, 36%)
CMYKcmyk(0%, 81.3%, 1.1%, 64.3%)
CIE-LABlab(21.45, 41.59, -25.63)
CIE-LCHlch(21.45, 48.85, 328.36°)
OKLaboklab(34.09% 0.1166 -0.071)
OKLCHoklch(34.09% 0.137 328.7)
XYZxyz(6.3602, 3.3637, 9.9852)
Luminance0.0336 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B115A #115B12
analogous
#37115B #5B115A #5B1135
triadic
#5B115A #5A5B11 #115A5B
tetradic
#5B115A #5B3711 #115B12 #11355B
square
#5B115A #5B3711 #115B12 #11355B
split-complementary
#5B115A #355B11 #115B37
monochromatic
#1A051A #270727 #5B115A #8F1B8D #C224C0

Accessibility & contrast

On white

12.56
#5B115A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5B115A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B115A
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B115A#FFFFFF#000000##FFFFFF
##5B115A1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032D5C
Deuteranopia (green-blind)
#273758
Tritanopia (blue-blind)
#5E1D35
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b115a;
/* rgb */ color: rgb(91, 17, 90);
/* oklch */ color: oklch(34.1% 0.137 328.7);
Tailwind
colors: {
  custom: {
    50: '#8c5989',
    500: '#5b115a',
    950: '#000000',
  },
}
SCSS
$custom: #5b115a;
$custom-light: #8c5989;
$custom-dark: #000000;
JSON
{
  "hex": "#5b115a",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 90
  },
  "hsl": {
    "h": 300.811,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.34089,
    "c": 0.13652,
    "h": 328.7
  },
  "luminance": 0.03363
}

Semantic roles & 50–950 ramp

primary
#5B115A
secondary
#349435
accent
#EB3F3C
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B115A

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

Preview Lab → · Contrast checker → · Palette generator →

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