#5D1779#5D1779

#5D1779 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.2% C 0.159 H 313.8°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#5D1779
RGBrgb(93, 23, 121)
HSLhsl(283, 68%, 28%)
HSVhsv(283, 81%, 47%)
CMYKcmyk(23.1%, 81%, 0%, 52.5%)
CIE-LABlab(24.70, 46.12, -40.56)
CIE-LCHlch(24.70, 61.42, 318.67°)
OKLaboklab(37.16% 0.1101 -0.1146)
OKLCHoklch(37.16% 0.159 313.8)
XYZxyz(8.2712, 4.3207, 18.4837)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1779 #337917
analogous
#2C1779 #5D1779 #791764
triadic
#5D1779 #795D17 #17795D
tetradic
#5D1779 #792C17 #337917 #176479
square
#5D1779 #792C17 #337917 #176479
split-complementary
#5D1779 #647917 #17792C
monochromatic
#14051A #350D46 #5D1779 #8521AC #A932D8

Accessibility & contrast

On white

11.27
#5D1779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5D1779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1779
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1779#FFFFFF#000000##FFFFFF
##5D17791.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#0D3C77
Tritanopia (blue-blind)
#5A2E48
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5d1779;
/* rgb */ color: rgb(93, 23, 121);
/* oklch */ color: oklch(37.2% 0.159 313.8);
Tailwind
colors: {
  custom: {
    50: '#8f5da0',
    500: '#5d1779',
    950: '#000000',
  },
}
SCSS
$custom: #5d1779;
$custom-light: #8f5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1779",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 282.857,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37162,
    "c": 0.15895,
    "h": 313.8
  },
  "luminance": 0.0432
}

Semantic roles & 50–950 ramp

primary
#5D1779
secondary
#5EAE3E
accent
#EB3D6F
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5D1779

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

Preview Lab → · Contrast checker → · Palette generator →

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