#5B156A#5B156A

#5B156A is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.5% C 0.146 H 319.8°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#5B156A
RGBrgb(91, 21, 106)
HSLhsl(289, 67%, 25%)
HSVhsv(289, 80%, 42%)
CMYKcmyk(14.2%, 80.2%, 0%, 58.4%)
CIE-LABlab(23.00, 43.28, -33.67)
CIE-LCHlch(23.00, 54.83, 322.12°)
OKLaboklab(35.54% 0.1117 -0.0945)
OKLCHoklch(35.54% 0.146 319.8)
XYZxyz(7.1837, 3.8015, 13.9882)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B156A #246A15
analogous
#31156A #5B156A #6A154E
triadic
#5B156A #6A5B15 #156A5B
tetradic
#5B156A #6A3115 #246A15 #154E6A
square
#5B156A #6A3115 #246A15 #154E6A
split-complementary
#5B156A #4E6A15 #156A31
monochromatic
#16051A #2F0B37 #5B156A #871F9D #B329D0

Accessibility & contrast

On white

11.93
#5B156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B156A
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B156A#FFFFFF#000000##FFFFFF
##5B156A1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b156a;
/* rgb */ color: rgb(91, 21, 106);
/* oklch */ color: oklch(35.5% 0.146 319.8);
Tailwind
colors: {
  custom: {
    50: '#8d5b95',
    500: '#5b156a',
    950: '#000000',
  },
}
SCSS
$custom: #5b156a;
$custom-light: #8d5b95;
$custom-dark: #000000;
JSON
{
  "hex": "#5b156a",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 289.412,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.35542,
    "c": 0.14627,
    "h": 319.8
  },
  "luminance": 0.03801
}

Semantic roles & 50–950 ramp

primary
#5B156A
secondary
#4CA13A
accent
#EA3E5C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B156A

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

Preview Lab → · Contrast checker → · Palette generator →

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