#5B156B#5B156B

#5B156B is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.6% C 0.147 H 319.3°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#5B156B
RGBrgb(91, 21, 107)
HSLhsl(289, 67%, 25%)
HSVhsv(289, 80%, 42%)
CMYKcmyk(15%, 80.4%, 0%, 58%)
CIE-LABlab(23.08, 43.48, -34.20)
CIE-LCHlch(23.08, 55.32, 321.81°)
OKLaboklab(35.62% 0.1115 -0.0961)
OKLCHoklch(35.62% 0.147 319.3)
XYZxyz(7.2360, 3.8224, 14.2637)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B156B #256B15
analogous
#30156B #5B156B #6B1550
triadic
#5B156B #6B5B15 #156B5B
tetradic
#5B156B #6B3015 #256B15 #15506B
square
#5B156B #6B3015 #256B15 #15506B
split-complementary
#5B156B #506B15 #156B30
monochromatic
#16051A #2F0B38 #5B156B #871F9E #B229D1

Accessibility & contrast

On white

11.90
#5B156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5B156B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B156B
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B156B#FFFFFF#000000##FFFFFF
##5B156B1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#1C3969
Tritanopia (blue-blind)
#5B273F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b156b;
/* rgb */ color: rgb(91, 21, 107);
/* oklch */ color: oklch(35.6% 0.147 319.3);
Tailwind
colors: {
  custom: {
    50: '#8d5b96',
    500: '#5b156b',
    950: '#000000',
  },
}
SCSS
$custom: #5b156b;
$custom-light: #8d5b96;
$custom-dark: #000000;
JSON
{
  "hex": "#5b156b",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 288.837,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.35615,
    "c": 0.1472,
    "h": 319.3
  },
  "luminance": 0.03822
}

Semantic roles & 50–950 ramp

primary
#5B156B
secondary
#4DA23A
accent
#EA3E5E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B156B

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

Preview Lab → · Contrast checker → · Palette generator →

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