#5D156C#5D156C

#5D156C is a dark, vivid purple. Relative luminance 0.039; OKLCH L 36.0% C 0.149 H 319.9°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#5D156C
RGBrgb(93, 21, 108)
HSLhsl(290, 67%, 25%)
HSVhsv(290, 81%, 42%)
CMYKcmyk(13.9%, 80.6%, 0%, 57.6%)
CIE-LABlab(23.49, 44.12, -34.16)
CIE-LCHlch(23.49, 55.80, 322.25°)
OKLaboklab(36% 0.114 -0.0959)
OKLCHoklch(36% 0.149 319.9)
XYZxyz(7.4888, 3.9466, 14.5518)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D156C #246C15
analogous
#31156C #5D156C #6C154F
triadic
#5D156C #6C5D15 #156C5D
tetradic
#5D156C #6C3115 #246C15 #154F6C
square
#5D156C #6C3115 #246C15 #154F6C
split-complementary
#5D156C #4F6C15 #156C31
monochromatic
#16051A #310B39 #5D156C #891F9F #B529D2

Accessibility & contrast

On white

11.74
#5D156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5D156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D156C
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D156C#FFFFFF#000000##FFFFFF
##5D156C1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#1D3A6A
Tritanopia (blue-blind)
#5D2740
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5d156c;
/* rgb */ color: rgb(93, 21, 108);
/* oklch */ color: oklch(36.0% 0.149 319.9);
Tailwind
colors: {
  custom: {
    50: '#8e5c97',
    500: '#5d156c',
    950: '#000000',
  },
}
SCSS
$custom: #5d156c;
$custom-light: #8e5c97;
$custom-dark: #000000;
JSON
{
  "hex": "#5d156c",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 289.655,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.36003,
    "c": 0.14896,
    "h": 319.9
  },
  "luminance": 0.03946
}

Semantic roles & 50–950 ramp

primary
#5D156C
secondary
#4CA33A
accent
#EA3D5B
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5D156C

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

Preview Lab → · Contrast checker → · Palette generator →

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