#5D176E#5D176E

#5D176E is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.3% C 0.149 H 318.8°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#5D176E
RGBrgb(93, 23, 110)
HSLhsl(288, 65%, 26%)
HSVhsv(288, 79%, 43%)
CMYKcmyk(15.5%, 79.1%, 0%, 56.9%)
CIE-LABlab(23.89, 43.80, -34.82)
CIE-LCHlch(23.89, 55.96, 321.52°)
OKLaboklab(36.33% 0.1119 -0.0978)
OKLCHoklch(36.33% 0.149 318.8)
XYZxyz(7.6347, 4.0661, 15.1315)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D176E #286E17
analogous
#31176E #5D176E #6E1753
triadic
#5D176E #6E5D17 #176E5D
tetradic
#5D176E #6E3117 #286E17 #17536E
square
#5D176E #6E3117 #286E17 #17536E
split-complementary
#5D176E #536E17 #176E31
monochromatic
#150519 #320C3B #5D176E #8822A1 #B22CD3

Accessibility & contrast

On white

11.58
#5D176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D176E
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D176E#FFFFFF#000000##FFFFFF
##5D176E1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d176e;
/* rgb */ color: rgb(93, 23, 110);
/* oklch */ color: oklch(36.3% 0.149 318.8);
Tailwind
colors: {
  custom: {
    50: '#8e5d98',
    500: '#5d176e',
    950: '#000000',
  },
}
SCSS
$custom: #5d176e;
$custom-light: #8e5d98;
$custom-dark: #000000;
JSON
{
  "hex": "#5d176e",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 288.276,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.36328,
    "c": 0.1486,
    "h": 318.8
  },
  "luminance": 0.04066
}

Semantic roles & 50–950 ramp

primary
#5D176E
secondary
#51A43D
accent
#E83F60
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D176E

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

Preview Lab → · Contrast checker → · Palette generator →

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