#5D1560#5D1560

#5D1560 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.138 H 326.3°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#5D1560
RGBrgb(93, 21, 96)
HSLhsl(298, 64%, 23%)
HSVhsv(298, 78%, 38%)
CMYKcmyk(3.1%, 78.1%, 0%, 62.4%)
CIE-LABlab(22.68, 41.78, -27.61)
CIE-LCHlch(22.68, 50.08, 326.54°)
OKLaboklab(35.17% 0.115 -0.0767)
OKLCHoklch(35.17% 0.138 326.3)
XYZxyz(6.8936, 3.7085, 11.4168)
Luminance0.0371 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1560 #186015
analogous
#371560 #5D1560 #60153D
triadic
#5D1560 #605D15 #15605D
tetradic
#5D1560 #603715 #186015 #153D60
square
#5D1560 #603715 #186015 #153D60
split-complementary
#5D1560 #3D6015 #156037
monochromatic
#180519 #2C0A2E #5D1560 #8E2092 #BE2BC4

Accessibility & contrast

On white

12.06
#5D1560 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5D1560 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1560
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1560#FFFFFF#000000##FFFFFF
##5D15601.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023062
Deuteranopia (green-blind)
#27395E
Tritanopia (blue-blind)
#602239
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5d1560;
/* rgb */ color: rgb(93, 21, 96);
/* oklch */ color: oklch(35.2% 0.138 326.3);
Tailwind
colors: {
  custom: {
    50: '#8e5b8d',
    500: '#5d1560',
    950: '#000000',
  },
}
SCSS
$custom: #5d1560;
$custom-light: #8e5b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1560",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 96
  },
  "hsl": {
    "h": 297.6,
    "s": 64.103,
    "l": 22.941
  },
  "oklch": {
    "l": 0.35167,
    "c": 0.13821,
    "h": 326.3
  },
  "luminance": 0.03708
}

Semantic roles & 50–950 ramp

primary
#5D1560
secondary
#3D973A
accent
#E74147
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040C
muted
#7D797D

Preview Lab

Preview with #5D1560

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

Preview Lab → · Contrast checker → · Palette generator →

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