#5C176F#5C176F

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

Color values

HEX#5C176F
RGBrgb(92, 23, 111)
HSLhsl(287, 66%, 26%)
HSVhsv(287, 79%, 44%)
CMYKcmyk(17.1%, 79.3%, 0%, 56.5%)
CIE-LABlab(23.79, 43.79, -35.63)
CIE-LCHlch(23.79, 56.46, 320.86°)
OKLaboklab(36.25% 0.1104 -0.1002)
OKLCHoklch(36.25% 0.149 317.8)
XYZxyz(7.5889, 4.0361, 15.4152)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C176F #2A6F17
analogous
#30176F #5C176F #6F1756
triadic
#5C176F #6F5C17 #176F5C
tetradic
#5C176F #6F3017 #2A6F17 #17566F
square
#5C176F #6F3017 #2A6F17 #17566F
split-complementary
#5C176F #566F17 #176F30
monochromatic
#150519 #320C3C #5C176F #8622A2 #B02DD3

Accessibility & contrast

On white

11.62
#5C176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C176F
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C176F#FFFFFF#000000##FFFFFF
##5C176F1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c176f;
/* rgb */ color: rgb(92, 23, 111);
/* oklch */ color: oklch(36.2% 0.149 317.8);
Tailwind
colors: {
  custom: {
    50: '#8d5d99',
    500: '#5c176f',
    950: '#000000',
  },
}
SCSS
$custom: #5c176f;
$custom-light: #8d5d99;
$custom-dark: #000000;
JSON
{
  "hex": "#5c176f",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 287.045,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36247,
    "c": 0.14912,
    "h": 317.8
  },
  "luminance": 0.04036
}

Semantic roles & 50–950 ramp

primary
#5C176F
secondary
#53A53D
accent
#E93F64
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5C176F

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

Preview Lab → · Contrast checker → · Palette generator →

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