#5D166C#5D166C

#5D166C is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.148 H 319.9°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#5D166C
RGBrgb(93, 22, 108)
HSLhsl(290, 66%, 25%)
HSVhsv(290, 80%, 42%)
CMYKcmyk(13.9%, 79.6%, 0%, 57.6%)
CIE-LABlab(23.62, 43.76, -33.96)
CIE-LCHlch(23.62, 55.39, 322.19°)
OKLaboklab(36.09% 0.1131 -0.0953)
OKLCHoklch(36.09% 0.148 319.9)
XYZxyz(7.5075, 3.9841, 14.5580)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D166C #256C16
analogous
#32166C #5D166C #6C1650
triadic
#5D166C #6C5D16 #166C5D
tetradic
#5D166C #6C3216 #256C16 #16506C
square
#5D166C #6C3216 #256C16 #16506C
split-complementary
#5D166C #506C16 #166C32
monochromatic
#160519 #310C39 #5D166C #89209F #B52BD2

Accessibility & contrast

On white

11.69
#5D166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5D166C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D166C
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D166C#FFFFFF#000000##FFFFFF
##5D166C1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346E
Deuteranopia (green-blind)
#1E3B6A
Tritanopia (blue-blind)
#5D2840
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5d166c;
/* rgb */ color: rgb(93, 22, 108);
/* oklch */ color: oklch(36.1% 0.148 319.9);
Tailwind
colors: {
  custom: {
    50: '#8e5c97',
    500: '#5d166c',
    950: '#000000',
  },
}
SCSS
$custom: #5d166c;
$custom-light: #8e5c97;
$custom-dark: #000000;
JSON
{
  "hex": "#5d166c",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 289.535,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.36091,
    "c": 0.14786,
    "h": 319.9
  },
  "luminance": 0.03984
}

Semantic roles & 50–950 ramp

primary
#5D166C
secondary
#4DA23C
accent
#E93F5C
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5D166C

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

Preview Lab → · Contrast checker → · Palette generator →

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