#5D1D72#5D1D72

#5D1D72 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.2% C 0.145 H 316.4°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#5D1D72
RGBrgb(93, 29, 114)
HSLhsl(285, 59%, 28%)
HSVhsv(285, 75%, 45%)
CMYKcmyk(18.4%, 74.6%, 0%, 55.3%)
CIE-LABlab(25.02, 42.24, -35.58)
CIE-LCHlch(25.02, 55.23, 319.89°)
OKLaboklab(37.22% 0.1052 -0.1001)
OKLCHoklch(37.22% 0.145 316.4)
XYZxyz(7.9904, 4.4211, 16.3488)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1D72 #32721D
analogous
#321D72 #5D1D72 #721D5D
triadic
#5D1D72 #725D1D #1D725D
tetradic
#5D1D72 #72321D #32721D #1D5D72
square
#5D1D72 #72321D #32721D #1D5D72
split-complementary
#5D1D72 #5D721D #1D7232
monochromatic
#140618 #351141 #5D1D72 #8529A3 #A93CCD

Accessibility & contrast

On white

11.15
#5D1D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5D1D72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1D72
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1D72#FFFFFF#000000##FFFFFF
##5D1D721.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#1D3D70
Tritanopia (blue-blind)
#5C2E45
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5d1d72;
/* rgb */ color: rgb(93, 29, 114);
/* oklch */ color: oklch(37.2% 0.145 316.4);
Tailwind
colors: {
  custom: {
    50: '#8e609b',
    500: '#5d1d72',
    950: '#000000',
  },
}
SCSS
$custom: #5d1d72;
$custom-light: #8e609b;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1d72",
  "rgb": {
    "r": 93,
    "g": 29,
    "b": 114
  },
  "hsl": {
    "h": 285.176,
    "s": 59.441,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3722,
    "c": 0.14519,
    "h": 316.4
  },
  "luminance": 0.04421
}

Semantic roles & 50–950 ramp

primary
#5D1D72
secondary
#5DA645
accent
#E3456C
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D1D72

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

Preview Lab → · Contrast checker → · Palette generator →

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