#5B1156#5B1156

#5B1156 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.8% C 0.133 H 331.1°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#5B1156
RGBrgb(91, 17, 86)
HSLhsl(304, 69%, 21%)
HSVhsv(304, 81%, 36%)
CMYKcmyk(0%, 81.3%, 5.5%, 64.3%)
CIE-LABlab(21.20, 40.88, -23.35)
CIE-LCHlch(21.20, 47.08, 330.27°)
OKLaboklab(33.83% 0.1166 -0.0644)
OKLCHoklch(33.83% 0.133 331.1)
XYZxyz(6.1945, 3.2974, 9.1125)
Luminance0.0330 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1156 #115B16
analogous
#3B115B #5B1156 #5B1131
triadic
#5B1156 #565B11 #11565B
tetradic
#5B1156 #5B3B11 #115B16 #11315B
square
#5B1156 #5B3B11 #115B16 #11315B
split-complementary
#5B1156 #315B11 #115B3B
monochromatic
#1A0518 #270725 #5B1156 #8F1B87 #C224B7

Accessibility & contrast

On white

12.66
#5B1156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5B1156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1156
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1156#FFFFFF#000000##FFFFFF
##5B11561.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092C58
Deuteranopia (green-blind)
#293654
Tritanopia (blue-blind)
#5F1B33
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b1156;
/* rgb */ color: rgb(91, 17, 86);
/* oklch */ color: oklch(33.8% 0.133 331.1);
Tailwind
colors: {
  custom: {
    50: '#8c5986',
    500: '#5b1156',
    950: '#000000',
  },
}
SCSS
$custom: #5b1156;
$custom-light: #8c5986;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1156",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 304.054,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33832,
    "c": 0.13319,
    "h": 331.1
  },
  "luminance": 0.03297
}

Semantic roles & 50–950 ramp

primary
#5B1156
secondary
#34943A
accent
#EB483C
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B1156

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

Preview Lab → · Contrast checker → · Palette generator →

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