#5D166E#5D166E

#5D166E is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.150 H 318.9°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#5D166E
RGBrgb(93, 22, 110)
HSLhsl(288, 67%, 26%)
HSVhsv(288, 80%, 43%)
CMYKcmyk(15.5%, 80%, 0%, 56.9%)
CIE-LABlab(23.76, 44.17, -35.03)
CIE-LCHlch(23.76, 56.37, 321.58°)
OKLaboklab(36.24% 0.1128 -0.0984)
OKLCHoklch(36.24% 0.15 318.9)
XYZxyz(7.6152, 4.0271, 15.1250)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D166E #276E16
analogous
#31166E #5D166E #6E1653
triadic
#5D166E #6E5D16 #166E5D
tetradic
#5D166E #6E3116 #276E16 #16536E
square
#5D166E #6E3116 #276E16 #16536E
split-complementary
#5D166E #536E16 #166E31
monochromatic
#16051A #320C3B #5D166E #8820A1 #B32AD4

Accessibility & contrast

On white

11.63
#5D166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5D166E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D166E
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D166E#FFFFFF#000000##FFFFFF
##5D166E1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#1C3B6C
Tritanopia (blue-blind)
#5D2941
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5d166e;
/* rgb */ color: rgb(93, 22, 110);
/* oklch */ color: oklch(36.2% 0.150 318.9);
Tailwind
colors: {
  custom: {
    50: '#8e5c98',
    500: '#5d166e',
    950: '#000000',
  },
}
SCSS
$custom: #5d166e;
$custom-light: #8e5c98;
$custom-dark: #000000;
JSON
{
  "hex": "#5d166e",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 288.409,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.36237,
    "c": 0.14972,
    "h": 318.9
  },
  "luminance": 0.04027
}

Semantic roles & 50–950 ramp

primary
#5D166E
secondary
#50A43C
accent
#EA3E5F
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5D166E

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

Preview Lab → · Contrast checker → · Palette generator →

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