#5D1774#5D1774

#5D1774 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.154 H 316.0°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#5D1774
RGBrgb(93, 23, 116)
HSLhsl(285, 67%, 27%)
HSVhsv(285, 80%, 45%)
CMYKcmyk(19.8%, 80.2%, 0%, 54.5%)
CIE-LABlab(24.33, 45.05, -37.98)
CIE-LCHlch(24.33, 58.92, 319.87°)
OKLaboklab(36.78% 0.111 -0.1071)
OKLCHoklch(36.78% 0.154 316)
XYZxyz(7.9725, 4.2012, 16.9106)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1774 #2E7417
analogous
#2E1774 #5D1774 #74175D
triadic
#5D1774 #745D17 #17745D
tetradic
#5D1774 #742E17 #2E7417 #175D74
square
#5D1774 #742E17 #2E7417 #175D74
split-complementary
#5D1774 #5D7417 #17742E
monochromatic
#14051A #340D41 #5D1774 #8621A7 #AD30D6

Accessibility & contrast

On white

11.41
#5D1774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1774
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1774#FFFFFF#000000##FFFFFF
##5D17741.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003677
Deuteranopia (green-blind)
#163C72
Tritanopia (blue-blind)
#5B2C45
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d1774;
/* rgb */ color: rgb(93, 23, 116);
/* oklch */ color: oklch(36.8% 0.154 316.0);
Tailwind
colors: {
  custom: {
    50: '#8e5d9d',
    500: '#5d1774',
    950: '#000000',
  },
}
SCSS
$custom: #5d1774;
$custom-light: #8e5d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1774",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 285.161,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.36776,
    "c": 0.15422,
    "h": 316
  },
  "luminance": 0.04201
}

Semantic roles & 50–950 ramp

primary
#5D1774
secondary
#58A93D
accent
#EA3E68
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D1774

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

Preview Lab → · Contrast checker → · Palette generator →

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