#5D156F#5D156F

#5D156F is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.152 H 318.5°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#5D156F
RGBrgb(93, 21, 111)
HSLhsl(288, 68%, 26%)
HSVhsv(288, 81%, 44%)
CMYKcmyk(16.2%, 81.1%, 0%, 56.5%)
CIE-LABlab(23.71, 44.73, -35.76)
CIE-LCHlch(23.71, 57.26, 321.36°)
OKLaboklab(36.22% 0.1136 -0.1005)
OKLCHoklch(36.22% 0.152 318.5)
XYZxyz(7.6512, 4.0115, 15.4071)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D156F #276F15
analogous
#30156F #5D156F #6F1554
triadic
#5D156F #6F5D15 #156F5D
tetradic
#5D156F #6F3015 #276F15 #15546F
square
#5D156F #6F3015 #276F15 #15546F
split-complementary
#5D156F #546F15 #156F30
monochromatic
#16051A #320B3C #5D156F #881FA2 #B328D6

Accessibility & contrast

On white

11.65
#5D156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5D156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D156F
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D156F#FFFFFF#000000##FFFFFF
##5D156F1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#1A3B6D
Tritanopia (blue-blind)
#5D2942
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5d156f;
/* rgb */ color: rgb(93, 21, 111);
/* oklch */ color: oklch(36.2% 0.152 318.5);
Tailwind
colors: {
  custom: {
    50: '#8e5c99',
    500: '#5d156f',
    950: '#000000',
  },
}
SCSS
$custom: #5d156f;
$custom-light: #8e5c99;
$custom-dark: #000000;
JSON
{
  "hex": "#5d156f",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 288,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.36224,
    "c": 0.15172,
    "h": 318.5
  },
  "luminance": 0.04011
}

Semantic roles & 50–950 ramp

primary
#5D156F
secondary
#50A53A
accent
#EB3D60
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5D156F

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

Preview Lab → · Contrast checker → · Palette generator →

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