#5D1584#5D1584

#5D1584 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.171 H 309.6°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#5D1584
RGBrgb(93, 21, 132)
HSLhsl(279, 73%, 30%)
HSVhsv(279, 84%, 52%)
CMYKcmyk(29.5%, 84.1%, 0%, 48.2%)
CIE-LABlab(25.35, 49.21, -46.47)
CIE-LCHlch(25.35, 67.68, 316.64°)
OKLaboklab(37.89% 0.1091 -0.132)
OKLCHoklch(37.89% 0.171 309.6)
XYZxyz(8.9464, 4.5296, 22.2283)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1584 #3C8415
analogous
#261584 #5D1584 #841573
triadic
#5D1584 #845D15 #15845D
tetradic
#5D1584 #842615 #3C8415 #157384
square
#5D1584 #842615 #3C8415 #157384
split-complementary
#5D1584 #738415 #158426
monochromatic
#13041A #380D4F #5D1584 #821DB9 #A335DF

Accessibility & contrast

On white

11.02
#5D1584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5D1584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1584
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1584#FFFFFF#000000##FFFFFF
##5D15841.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003D82
Tritanopia (blue-blind)
#57324E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d1584;
/* rgb */ color: rgb(93, 21, 132);
/* oklch */ color: oklch(37.9% 0.171 309.6);
Tailwind
colors: {
  custom: {
    50: '#905da9',
    500: '#5d1584',
    950: '#000000',
  },
}
SCSS
$custom: #5d1584;
$custom-light: #905da9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1584",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 132
  },
  "hsl": {
    "h": 278.919,
    "s": 72.549,
    "l": 30
  },
  "oklch": {
    "l": 0.37891,
    "c": 0.17128,
    "h": 309.6
  },
  "luminance": 0.04529
}

Semantic roles & 50–950 ramp

primary
#5D1584
secondary
#68B93C
accent
#EF3979
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1584

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

Preview Lab → · Contrast checker → · Palette generator →

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