#5D166F#5D166F

#5D166F is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.3% C 0.151 H 318.4°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#5D166F
RGBrgb(93, 22, 111)
HSLhsl(288, 67%, 26%)
HSVhsv(288, 80%, 44%)
CMYKcmyk(16.2%, 80.2%, 0%, 56.5%)
CIE-LABlab(23.83, 44.37, -35.56)
CIE-LCHlch(23.83, 56.86, 321.30°)
OKLaboklab(36.31% 0.1127 -0.1)
OKLCHoklch(36.31% 0.151 318.4)
XYZxyz(7.6700, 4.0490, 15.4134)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D166F #286F16
analogous
#30166F #5D166F #6F1654
triadic
#5D166F #6F5D16 #166F5D
tetradic
#5D166F #6F3016 #286F16 #16546F
square
#5D166F #6F3016 #286F16 #16546F
split-complementary
#5D166F #546F16 #166F30
monochromatic
#15051A #320C3C #5D166F #8820A2 #B22BD5

Accessibility & contrast

On white

11.60
#5D166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D166F
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D166F#FFFFFF#000000##FFFFFF
##5D166F1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#1B3B6D
Tritanopia (blue-blind)
#5D2942
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5d166f;
/* rgb */ color: rgb(93, 22, 111);
/* oklch */ color: oklch(36.3% 0.151 318.4);
Tailwind
colors: {
  custom: {
    50: '#8e5c99',
    500: '#5d166f',
    950: '#000000',
  },
}
SCSS
$custom: #5d166f;
$custom-light: #8e5c99;
$custom-dark: #000000;
JSON
{
  "hex": "#5d166f",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 287.865,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.36311,
    "c": 0.15064,
    "h": 318.4
  },
  "luminance": 0.04049
}

Semantic roles & 50–950 ramp

primary
#5D166F
secondary
#51A53C
accent
#EA3E61
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5D166F

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

Preview Lab → · Contrast checker → · Palette generator →

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