#5B156F#5B156F

#5B156F is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.9% C 0.151 H 317.3°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#5B156F
RGBrgb(91, 21, 111)
HSLhsl(287, 68%, 26%)
HSVhsv(287, 81%, 44%)
CMYKcmyk(18%, 81.1%, 0%, 56.5%)
CIE-LABlab(23.37, 44.31, -36.33)
CIE-LCHlch(23.37, 57.30, 320.66°)
OKLaboklab(35.91% 0.111 -0.1023)
OKLCHoklch(35.91% 0.151 317.3)
XYZxyz(7.4514, 3.9085, 15.3978)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B156F #296F15
analogous
#2E156F #5B156F #6F1556
triadic
#5B156F #6F5B15 #156F5B
tetradic
#5B156F #6F2E15 #296F15 #15566F
square
#5B156F #6F2E15 #296F15 #15566F
split-complementary
#5B156F #566F15 #156F2E
monochromatic
#15051A #310B3C #5B156F #851FA2 #AF28D6

Accessibility & contrast

On white

11.79
#5B156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B156F
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B156F#FFFFFF#000000##FFFFFF
##5B156F1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#173A6D
Tritanopia (blue-blind)
#5A2942
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b156f;
/* rgb */ color: rgb(91, 21, 111);
/* oklch */ color: oklch(35.9% 0.151 317.3);
Tailwind
colors: {
  custom: {
    50: '#8d5c99',
    500: '#5b156f',
    950: '#000000',
  },
}
SCSS
$custom: #5b156f;
$custom-light: #8d5c99;
$custom-dark: #000000;
JSON
{
  "hex": "#5b156f",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 286.667,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.35914,
    "c": 0.15091,
    "h": 317.3
  },
  "luminance": 0.03908
}

Semantic roles & 50–950 ramp

primary
#5B156F
secondary
#52A53A
accent
#EB3D63
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B156F

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

Preview Lab → · Contrast checker → · Palette generator →

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