#5D1678#5D1678

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

Color values

HEX#5D1678
RGBrgb(93, 22, 120)
HSLhsl(283, 69%, 28%)
HSVhsv(283, 82%, 47%)
CMYKcmyk(22.5%, 81.7%, 0%, 52.9%)
CIE-LABlab(24.50, 46.26, -40.25)
CIE-LCHlch(24.50, 61.32, 318.98°)
OKLaboklab(37% 0.1112 -0.1137)
OKLCHoklch(37% 0.159 314.3)
XYZxyz(8.1907, 4.2573, 18.1559)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1678 #317816
analogous
#2C1678 #5D1678 #781662
triadic
#5D1678 #785D16 #16785D
tetradic
#5D1678 #782C16 #317816 #166278
square
#5D1678 #782C16 #317816 #166278
split-complementary
#5D1678 #627816 #16782C
monochromatic
#14051A #350D44 #5D1678 #851FAC #AA2FD9

Accessibility & contrast

On white

11.34
#5D1678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1678
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1678#FFFFFF#000000##FFFFFF
##5D16781.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#0E3C76
Tritanopia (blue-blind)
#5A2D47
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d1678;
/* rgb */ color: rgb(93, 22, 120);
/* oklch */ color: oklch(37.0% 0.159 314.3);
Tailwind
colors: {
  custom: {
    50: '#8f5da0',
    500: '#5d1678',
    950: '#000000',
  },
}
SCSS
$custom: #5d1678;
$custom-light: #8f5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1678",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 283.469,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.36998,
    "c": 0.15904,
    "h": 314.3
  },
  "luminance": 0.04257
}

Semantic roles & 50–950 ramp

primary
#5D1678
secondary
#5CAD3C
accent
#EC3C6C
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5D1678

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

Preview Lab → · Contrast checker → · Palette generator →

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