#5D166A#5D166A

#5D166A is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.9% C 0.146 H 320.9°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#5D166A
RGBrgb(93, 22, 106)
HSLhsl(291, 66%, 25%)
HSVhsv(291, 79%, 42%)
CMYKcmyk(12.3%, 79.2%, 0%, 58.4%)
CIE-LABlab(23.48, 43.36, -32.89)
CIE-LCHlch(23.48, 54.42, 322.82°)
OKLaboklab(35.95% 0.1133 -0.0921)
OKLCHoklch(35.95% 0.146 320.9)
XYZxyz(7.4023, 3.9420, 14.0038)
Luminance0.0394 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D166A #236A16
analogous
#33166A #5D166A #6A164D
triadic
#5D166A #6A5D16 #166A5D
tetradic
#5D166A #6A3316 #236A16 #164D6A
square
#5D166A #6A3316 #236A16 #164D6A
split-complementary
#5D166A #4D6A16 #166A33
monochromatic
#160519 #310B37 #5D166A #89219D #B62BCF

Accessibility & contrast

On white

11.74
#5D166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5D166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D166A
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D166A#FFFFFF#000000##FFFFFF
##5D166A1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#203A68
Tritanopia (blue-blind)
#5E273F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5d166a;
/* rgb */ color: rgb(93, 22, 106);
/* oklch */ color: oklch(35.9% 0.146 320.9);
Tailwind
colors: {
  custom: {
    50: '#8e5c95',
    500: '#5d166a',
    950: '#000000',
  },
}
SCSS
$custom: #5d166a;
$custom-light: #8e5c95;
$custom-dark: #000000;
JSON
{
  "hex": "#5d166a",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 290.714,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.35947,
    "c": 0.14603,
    "h": 320.9
  },
  "luminance": 0.03942
}

Semantic roles & 50–950 ramp

primary
#5D166A
secondary
#4BA03B
accent
#E93F59
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5D166A

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

Preview Lab → · Contrast checker → · Palette generator →

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