#5D156E#5D156E

#5D156E is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.151 H 319.0°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#5D156E
RGBrgb(93, 21, 110)
HSLhsl(289, 68%, 26%)
HSVhsv(289, 81%, 43%)
CMYKcmyk(15.5%, 80.9%, 0%, 56.9%)
CIE-LABlab(23.64, 44.53, -35.23)
CIE-LCHlch(23.64, 56.77, 321.65°)
OKLaboklab(36.15% 0.1138 -0.099)
OKLCHoklch(36.15% 0.151 319)
XYZxyz(7.5965, 3.9896, 15.1188)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D156E #266E15
analogous
#30156E #5D156E #6E1552
triadic
#5D156E #6E5D15 #156E5D
tetradic
#5D156E #6E3015 #266E15 #15526E
square
#5D156E #6E3015 #266E15 #15526E
split-complementary
#5D156E #526E15 #156E30
monochromatic
#16051A #320B3B #5D156E #881FA1 #B429D5

Accessibility & contrast

On white

11.68
#5D156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D156E
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D156E#FFFFFF#000000##FFFFFF
##5D156E1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#1B3B6C
Tritanopia (blue-blind)
#5D2841
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5d156e;
/* rgb */ color: rgb(93, 21, 110);
/* oklch */ color: oklch(36.1% 0.151 319.0);
Tailwind
colors: {
  custom: {
    50: '#8e5c98',
    500: '#5d156e',
    950: '#000000',
  },
}
SCSS
$custom: #5d156e;
$custom-light: #8e5c98;
$custom-dark: #000000;
JSON
{
  "hex": "#5d156e",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 288.539,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3615,
    "c": 0.15079,
    "h": 319
  },
  "luminance": 0.03989
}

Semantic roles & 50–950 ramp

primary
#5D156E
secondary
#4FA43A
accent
#EB3D5E
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5D156E

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

Preview Lab → · Contrast checker → · Palette generator →

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