#5D1E72#5D1E72

#5D1E72 is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.3% C 0.144 H 316.3°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#5D1E72
RGBrgb(93, 30, 114)
HSLhsl(285, 58%, 28%)
HSVhsv(285, 74%, 45%)
CMYKcmyk(18.4%, 73.7%, 0%, 55.3%)
CIE-LABlab(25.17, 41.80, -35.34)
CIE-LCHlch(25.17, 54.74, 319.79°)
OKLaboklab(37.33% 0.1041 -0.0994)
OKLCHoklch(37.33% 0.144 316.3)
XYZxyz(8.0153, 4.4709, 16.3571)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1E72 #33721E
analogous
#331E72 #5D1E72 #721E5D
triadic
#5D1E72 #725D1E #1E725D
tetradic
#5D1E72 #72331E #33721E #1E5D72
square
#5D1E72 #72331E #33721E #1E5D72
split-complementary
#5D1E72 #5D721E #1E7233
monochromatic
#140618 #351142 #5D1E72 #852BA2 #A93ECC

Accessibility & contrast

On white

11.09
#5D1E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5D1E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1E72
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1E72#FFFFFF#000000##FFFFFF
##5D1E721.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#1E3D70
Tritanopia (blue-blind)
#5C2F46
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d1e72;
/* rgb */ color: rgb(93, 30, 114);
/* oklch */ color: oklch(37.3% 0.144 316.3);
Tailwind
colors: {
  custom: {
    50: '#8e609b',
    500: '#5d1e72',
    950: '#000000',
  },
}
SCSS
$custom: #5d1e72;
$custom-light: #8e609b;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1e72",
  "rgb": {
    "r": 93,
    "g": 30,
    "b": 114
  },
  "hsl": {
    "h": 285,
    "s": 58.333,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3733,
    "c": 0.14388,
    "h": 316.3
  },
  "luminance": 0.04471
}

Semantic roles & 50–950 ramp

primary
#5D1E72
secondary
#5EA646
accent
#E2466D
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D1E72

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

Preview Lab → · Contrast checker → · Palette generator →

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