#5C1171#5C1171

#5C1171 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.9% C 0.157 H 317.2°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#5C1171
RGBrgb(92, 17, 113)
HSLhsl(287, 74%, 25%)
HSVhsv(287, 85%, 44%)
CMYKcmyk(18.6%, 85%, 0%, 55.7%)
CIE-LABlab(23.23, 46.25, -37.82)
CIE-LCHlch(23.23, 59.74, 320.72°)
OKLaboklab(35.9% 0.1153 -0.1066)
OKLCHoklch(35.9% 0.157 317.2)
XYZxyz(7.5943, 3.8688, 15.9663)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1171 #267111
analogous
#2C1171 #5C1171 #711156
triadic
#5C1171 #715C11 #11715C
tetradic
#5C1171 #712C11 #267111 #115671
square
#5C1171 #712C11 #267111 #115671
split-complementary
#5C1171 #567111 #11712C
monochromatic
#16041B #31093C #5C1171 #8719A6 #B321DB

Accessibility & contrast

On white

11.84
#5C1171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5C1171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1171
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1171#FFFFFF#000000##FFFFFF
##5C11711.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#13396F
Tritanopia (blue-blind)
#5B2842
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5c1171;
/* rgb */ color: rgb(92, 17, 113);
/* oklch */ color: oklch(35.9% 0.157 317.2);
Tailwind
colors: {
  custom: {
    50: '#8e5a9a',
    500: '#5c1171',
    950: '#000000',
  },
}
SCSS
$custom: #5c1171;
$custom-light: #8e5a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1171",
  "rgb": {
    "r": 92,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 286.875,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35901,
    "c": 0.15706,
    "h": 317.2
  },
  "luminance": 0.03868
}

Semantic roles & 50–950 ramp

primary
#5C1171
secondary
#4FA836
accent
#F13760
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5C1171

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

Preview Lab → · Contrast checker → · Palette generator →

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