#5D1879#5D1879

#5D1879 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.3% C 0.158 H 313.8°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#5D1879
RGBrgb(93, 24, 121)
HSLhsl(283, 67%, 28%)
HSVhsv(283, 80%, 47%)
CMYKcmyk(23.1%, 80.2%, 0%, 52.5%)
CIE-LABlab(24.83, 45.75, -40.36)
CIE-LCHlch(24.83, 61.01, 318.59°)
OKLaboklab(37.25% 0.1092 -0.1141)
OKLCHoklch(37.25% 0.158 313.8)
XYZxyz(8.2914, 4.3612, 18.4905)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1879 #347918
analogous
#2C1879 #5D1879 #791864
triadic
#5D1879 #795D18 #18795D
tetradic
#5D1879 #792C18 #347918 #186479
square
#5D1879 #792C18 #347918 #186479
split-complementary
#5D1879 #647918 #18792C
monochromatic
#14051A #360E46 #5D1879 #8422AC #A835D7

Accessibility & contrast

On white

11.22
#5D1879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5D1879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1879
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1879#FFFFFF#000000##FFFFFF
##5D18791.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d1879;
/* rgb */ color: rgb(93, 24, 121);
/* oklch */ color: oklch(37.3% 0.158 313.8);
Tailwind
colors: {
  custom: {
    50: '#8f5ea0',
    500: '#5d1879',
    950: '#000000',
  },
}
SCSS
$custom: #5d1879;
$custom-light: #8f5ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1879",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 282.68,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37252,
    "c": 0.1579,
    "h": 313.8
  },
  "luminance": 0.04361
}

Semantic roles & 50–950 ramp

primary
#5D1879
secondary
#5FAE3F
accent
#EA3E70
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5D1879

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

Preview Lab → · Contrast checker → · Palette generator →

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