#5D1872#5D1872

#5D1872 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.7% C 0.151 H 316.9°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#5D1872
RGBrgb(93, 24, 114)
HSLhsl(286, 65%, 27%)
HSVhsv(286, 79%, 45%)
CMYKcmyk(18.4%, 78.9%, 0%, 55.3%)
CIE-LABlab(24.31, 44.26, -36.72)
CIE-LCHlch(24.31, 57.51, 320.32°)
OKLaboklab(36.72% 0.1104 -0.1034)
OKLCHoklch(36.72% 0.151 316.9)
XYZxyz(7.8776, 4.1957, 16.3112)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1872 #2D7218
analogous
#301872 #5D1872 #72185A
triadic
#5D1872 #725D18 #18725D
tetradic
#5D1872 #723018 #2D7218 #185A72
square
#5D1872 #723018 #2D7218 #185A72
split-complementary
#5D1872 #5A7218 #187230
monochromatic
#150519 #340D3F #5D1872 #8623A5 #AE31D4

Accessibility & contrast

On white

11.42
#5D1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5D1872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1872
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1872#FFFFFF#000000##FFFFFF
##5D18721.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#193C70
Tritanopia (blue-blind)
#5C2C44
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d1872;
/* rgb */ color: rgb(93, 24, 114);
/* oklch */ color: oklch(36.7% 0.151 316.9);
Tailwind
colors: {
  custom: {
    50: '#8e5d9b',
    500: '#5d1872',
    950: '#000000',
  },
}
SCSS
$custom: #5d1872;
$custom-light: #8e5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1872",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 286,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.36717,
    "c": 0.15123,
    "h": 316.9
  },
  "luminance": 0.04195
}

Semantic roles & 50–950 ramp

primary
#5D1872
secondary
#57A73E
accent
#E84067
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D1872

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

Preview Lab → · Contrast checker → · Palette generator →

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