#5D176F#5D176F

#5D176F is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.4% C 0.150 H 318.4°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#5D176F
RGBrgb(93, 23, 111)
HSLhsl(288, 66%, 26%)
HSVhsv(288, 79%, 44%)
CMYKcmyk(16.2%, 79.3%, 0%, 56.5%)
CIE-LABlab(23.96, 44.01, -35.35)
CIE-LCHlch(23.96, 56.45, 321.22°)
OKLaboklab(36.4% 0.1117 -0.0994)
OKLCHoklch(36.4% 0.15 318.4)
XYZxyz(7.6894, 4.0880, 15.4199)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D176F #296F17
analogous
#31176F #5D176F #6F1755
triadic
#5D176F #6F5D17 #176F5D
tetradic
#5D176F #6F3117 #296F17 #17556F
square
#5D176F #6F3117 #296F17 #17556F
split-complementary
#5D176F #556F17 #176F31
monochromatic
#150519 #330C3C #5D176F #8722A2 #B12DD3

Accessibility & contrast

On white

11.55
#5D176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5D176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D176F
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D176F#FFFFFF#000000##FFFFFF
##5D176F1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003571
Deuteranopia (green-blind)
#1C3B6D
Tritanopia (blue-blind)
#5D2A42
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5d176f;
/* rgb */ color: rgb(93, 23, 111);
/* oklch */ color: oklch(36.4% 0.150 318.4);
Tailwind
colors: {
  custom: {
    50: '#8e5d99',
    500: '#5d176f',
    950: '#000000',
  },
}
SCSS
$custom: #5d176f;
$custom-light: #8e5d99;
$custom-dark: #000000;
JSON
{
  "hex": "#5d176f",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 287.727,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36401,
    "c": 0.14953,
    "h": 318.4
  },
  "luminance": 0.04088
}

Semantic roles & 50–950 ramp

primary
#5D176F
secondary
#52A53D
accent
#E93F62
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D176F

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

Preview Lab → · Contrast checker → · Palette generator →

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