#5B156D#5B156D

#5B156D is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.8% C 0.149 H 318.3°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#5B156D
RGBrgb(91, 21, 109)
HSLhsl(288, 68%, 25%)
HSVhsv(288, 81%, 43%)
CMYKcmyk(16.5%, 80.7%, 0%, 57.3%)
CIE-LABlab(23.22, 43.90, -35.27)
CIE-LCHlch(23.22, 56.31, 321.22°)
OKLaboklab(35.76% 0.1113 -0.0992)
OKLCHoklch(35.76% 0.149 318.3)
XYZxyz(7.3425, 3.8649, 14.8243)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B156D #276D15
analogous
#2F156D #5B156D #6D1553
triadic
#5B156D #6D5B15 #156D5B
tetradic
#5B156D #6D2F15 #276D15 #15536D
square
#5B156D #6D2F15 #276D15 #15536D
split-complementary
#5B156D #536D15 #156D2F
monochromatic
#15051A #300B3A #5B156D #861FA0 #B129D4

Accessibility & contrast

On white

11.84
#5B156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5B156D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B156D
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B156D#FFFFFF#000000##FFFFFF
##5B156D1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336F
Deuteranopia (green-blind)
#19396B
Tritanopia (blue-blind)
#5B2841
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b156d;
/* rgb */ color: rgb(91, 21, 109);
/* oklch */ color: oklch(35.8% 0.149 318.3);
Tailwind
colors: {
  custom: {
    50: '#8d5c97',
    500: '#5b156d',
    950: '#000000',
  },
}
SCSS
$custom: #5b156d;
$custom-light: #8d5c97;
$custom-dark: #000000;
JSON
{
  "hex": "#5b156d",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 287.727,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35763,
    "c": 0.14905,
    "h": 318.3
  },
  "luminance": 0.03865
}

Semantic roles & 50–950 ramp

primary
#5B156D
secondary
#50A33A
accent
#EB3D61
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5B156D

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

Preview Lab → · Contrast checker → · Palette generator →

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