#5B156E#5B156E

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

Color values

HEX#5B156E
RGBrgb(91, 21, 110)
HSLhsl(287, 68%, 26%)
HSVhsv(287, 81%, 43%)
CMYKcmyk(17.3%, 80.9%, 0%, 56.9%)
CIE-LABlab(23.29, 44.10, -35.80)
CIE-LCHlch(23.29, 56.80, 320.93°)
OKLaboklab(35.84% 0.1111 -0.1007)
OKLCHoklch(35.84% 0.15 317.8)
XYZxyz(7.3966, 3.8866, 15.1094)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B156E #286E15
analogous
#2E156E #5B156E #6E1554
triadic
#5B156E #6E5B15 #156E5B
tetradic
#5B156E #6E2E15 #286E15 #15546E
square
#5B156E #6E2E15 #286E15 #15546E
split-complementary
#5B156E #546E15 #156E2E
monochromatic
#15051A #300B3B #5B156E #861FA1 #B029D5

Accessibility & contrast

On white

11.82
#5B156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5B156E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B156E
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B156E#FFFFFF#000000##FFFFFF
##5B156E1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#183A6C
Tritanopia (blue-blind)
#5A2941
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b156e;
/* rgb */ color: rgb(91, 21, 110);
/* oklch */ color: oklch(35.8% 0.150 317.8);
Tailwind
colors: {
  custom: {
    50: '#8d5c98',
    500: '#5b156e',
    950: '#000000',
  },
}
SCSS
$custom: #5b156e;
$custom-light: #8d5c98;
$custom-dark: #000000;
JSON
{
  "hex": "#5b156e",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 287.191,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35838,
    "c": 0.14997,
    "h": 317.8
  },
  "luminance": 0.03886
}

Semantic roles & 50–950 ramp

primary
#5B156E
secondary
#51A43A
accent
#EB3D62
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B156E

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

Preview Lab → · Contrast checker → · Palette generator →

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