#5D156A#5D156A

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

Color values

HEX#5D156A
RGBrgb(93, 21, 106)
HSLhsl(291, 67%, 25%)
HSVhsv(291, 80%, 42%)
CMYKcmyk(12.3%, 80.2%, 0%, 58.4%)
CIE-LABlab(23.35, 43.72, -33.09)
CIE-LCHlch(23.35, 54.83, 322.88°)
OKLaboklab(35.86% 0.1143 -0.0927)
OKLCHoklch(35.86% 0.147 320.9)
XYZxyz(7.3836, 3.9045, 13.9976)
Luminance0.0390 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D156A #226A15
analogous
#33156A #5D156A #6A154C
triadic
#5D156A #6A5D15 #156A5D
tetradic
#5D156A #6A3315 #226A15 #154C6A
square
#5D156A #6A3315 #226A15 #154C6A
split-complementary
#5D156A #4C6A15 #156A33
monochromatic
#16051A #300B37 #5D156A #8A1F9D #B729D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D156A#FFFFFF#000000##FFFFFF
##5D156A1.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)
#00336C
Deuteranopia (green-blind)
#1F3A68
Tritanopia (blue-blind)
#5E263F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5d156a;
/* rgb */ color: rgb(93, 21, 106);
/* oklch */ color: oklch(35.9% 0.147 320.9);
Tailwind
colors: {
  custom: {
    50: '#8e5c95',
    500: '#5d156a',
    950: '#000000',
  },
}
SCSS
$custom: #5d156a;
$custom-light: #8e5c95;
$custom-dark: #000000;
JSON
{
  "hex": "#5d156a",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 290.824,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.35858,
    "c": 0.14714,
    "h": 320.9
  },
  "luminance": 0.03904
}

Semantic roles & 50–950 ramp

primary
#5D156A
secondary
#4AA13A
accent
#EA3E58
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5D156A

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

Preview Lab → · Contrast checker → · Palette generator →

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