#5D1668#5D1668

#5D1668 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.8% C 0.144 H 321.9°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#5D1668
RGBrgb(93, 22, 104)
HSLhsl(292, 65%, 25%)
HSVhsv(292, 79%, 41%)
CMYKcmyk(10.6%, 78.8%, 0%, 59.2%)
CIE-LABlab(23.34, 42.96, -31.81)
CIE-LCHlch(23.34, 53.45, 323.48°)
OKLaboklab(35.81% 0.1135 -0.089)
OKLCHoklch(35.81% 0.144 321.9)
XYZxyz(7.2995, 3.9009, 13.4625)
Luminance0.0390 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1668 #216816
analogous
#341668 #5D1668 #68164A
triadic
#5D1668 #685D16 #16685D
tetradic
#5D1668 #683416 #216816 #164A68
square
#5D1668 #683416 #216816 #164A68
split-complementary
#5D1668 #4A6816 #166834
monochromatic
#170519 #300B35 #5D1668 #8A219B #B72BCD

Accessibility & contrast

On white

11.80
#5D1668 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5D1668 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1668
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1668#FFFFFF#000000##FFFFFF
##5D16681.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336A
Deuteranopia (green-blind)
#213A66
Tritanopia (blue-blind)
#5E263E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5d1668;
/* rgb */ color: rgb(93, 22, 104);
/* oklch */ color: oklch(35.8% 0.144 321.9);
Tailwind
colors: {
  custom: {
    50: '#8e5c93',
    500: '#5d1668',
    950: '#000000',
  },
}
SCSS
$custom: #5d1668;
$custom-light: #8e5c93;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1668",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 291.951,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.35805,
    "c": 0.14421,
    "h": 321.9
  },
  "luminance": 0.039
}

Semantic roles & 50–950 ramp

primary
#5D1668
secondary
#499F3B
accent
#E84056
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5D1668

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

Preview Lab → · Contrast checker → · Palette generator →

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