#5D1561#5D1561

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

Color values

HEX#5D1561
RGBrgb(93, 21, 97)
HSLhsl(297, 64%, 23%)
HSVhsv(297, 78%, 38%)
CMYKcmyk(4.1%, 78.4%, 0%, 62%)
CIE-LABlab(22.75, 41.97, -28.17)
CIE-LCHlch(22.75, 50.54, 326.13°)
OKLaboklab(35.23% 0.1149 -0.0784)
OKLCHoklch(35.23% 0.139 325.7)
XYZxyz(6.9399, 3.7270, 11.6608)
Luminance0.0373 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1561 #196115
analogous
#371561 #5D1561 #61153F
triadic
#5D1561 #615D15 #15615D
tetradic
#5D1561 #613715 #196115 #153F61
square
#5D1561 #613715 #196115 #153F61
split-complementary
#5D1561 #3F6115 #156137
monochromatic
#180519 #2D0A2F #5D1561 #8D2093 #BD2BC6

Accessibility & contrast

On white

12.03
#5D1561 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5D1561 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1561
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1561#FFFFFF#000000##FFFFFF
##5D15611.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003163
Deuteranopia (green-blind)
#26395F
Tritanopia (blue-blind)
#5F223A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5d1561;
/* rgb */ color: rgb(93, 21, 97);
/* oklch */ color: oklch(35.2% 0.139 325.7);
Tailwind
colors: {
  custom: {
    50: '#8e5b8e',
    500: '#5d1561',
    950: '#000000',
  },
}
SCSS
$custom: #5d1561;
$custom-light: #8e5b8e;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1561",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 97
  },
  "hsl": {
    "h": 296.842,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.35234,
    "c": 0.13909,
    "h": 325.7
  },
  "luminance": 0.03727
}

Semantic roles & 50–950 ramp

primary
#5D1561
secondary
#3F983A
accent
#E74049
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040C
muted
#7D797D

Preview Lab

Preview with #5D1561

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

Preview Lab → · Contrast checker → · Palette generator →

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