#5D1777#5D1777

#5D1777 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.0% C 0.157 H 314.7°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#5D1777
RGBrgb(93, 23, 119)
HSLhsl(284, 68%, 28%)
HSVhsv(284, 81%, 47%)
CMYKcmyk(21.8%, 80.7%, 0%, 53.3%)
CIE-LABlab(24.55, 45.69, -39.53)
CIE-LCHlch(24.55, 60.42, 319.13°)
OKLaboklab(37.01% 0.1105 -0.1116)
OKLCHoklch(37.01% 0.157 314.7)
XYZxyz(8.1498, 4.2722, 17.8445)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1777 #317717
analogous
#2D1777 #5D1777 #771761
triadic
#5D1777 #775D17 #17775D
tetradic
#5D1777 #772D17 #317717 #176177
square
#5D1777 #772D17 #317717 #176177
split-complementary
#5D1777 #617717 #17772D
monochromatic
#14051A #350D44 #5D1777 #8521AA #AA31D7

Accessibility & contrast

On white

11.32
#5D1777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5D1777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1777
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1777#FFFFFF#000000##FFFFFF
##5D17771.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377A
Deuteranopia (green-blind)
#113C75
Tritanopia (blue-blind)
#5B2D47
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d1777;
/* rgb */ color: rgb(93, 23, 119);
/* oklch */ color: oklch(37.0% 0.157 314.7);
Tailwind
colors: {
  custom: {
    50: '#8f5d9f',
    500: '#5d1777',
    950: '#000000',
  },
}
SCSS
$custom: #5d1777;
$custom-light: #8f5d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1777",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 283.75,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37006,
    "c": 0.15706,
    "h": 314.7
  },
  "luminance": 0.04272
}

Semantic roles & 50–950 ramp

primary
#5D1777
secondary
#5CAC3E
accent
#EA3D6C
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D1777

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

Preview Lab → · Contrast checker → · Palette generator →

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