#5D1563#5D1563

#5D1563 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.4% C 0.141 H 324.6°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#5D1563
RGBrgb(93, 21, 99)
HSLhsl(295, 65%, 24%)
HSVhsv(295, 79%, 39%)
CMYKcmyk(6.1%, 78.8%, 0%, 61.2%)
CIE-LABlab(22.88, 42.35, -29.28)
CIE-LCHlch(22.88, 51.48, 325.34°)
OKLaboklab(35.37% 0.1148 -0.0816)
OKLCHoklch(35.37% 0.141 324.6)
XYZxyz(7.0343, 3.7648, 12.1581)
Luminance0.0376 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1563 #1B6315
analogous
#361563 #5D1563 #631542
triadic
#5D1563 #635D15 #15635D
tetradic
#5D1563 #633615 #1B6315 #154263
square
#5D1563 #633615 #1B6315 #154263
split-complementary
#5D1563 #426315 #156336
monochromatic
#180519 #2E0A31 #5D1563 #8C2095 #BC2AC8

Accessibility & contrast

On white

11.98
#5D1563 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1563
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1563#FFFFFF#000000##FFFFFF
##5D15631.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003165
Deuteranopia (green-blind)
#253A61
Tritanopia (blue-blind)
#5F233B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5d1563;
/* rgb */ color: rgb(93, 21, 99);
/* oklch */ color: oklch(35.4% 0.141 324.6);
Tailwind
colors: {
  custom: {
    50: '#8e5b90',
    500: '#5d1563',
    950: '#000000',
  },
}
SCSS
$custom: #5d1563;
$custom-light: #8e5b90;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1563",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 99
  },
  "hsl": {
    "h": 295.385,
    "s": 65,
    "l": 23.529
  },
  "oklch": {
    "l": 0.35369,
    "c": 0.14086,
    "h": 324.6
  },
  "luminance": 0.03764
}

Semantic roles & 50–950 ramp

primary
#5D1563
secondary
#419A3A
accent
#E8404D
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5D1563

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

Preview Lab → · Contrast checker → · Palette generator →

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