#5C1371#5C1371

#5C1371 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 36.1% C 0.155 H 317.1°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#5C1371
RGBrgb(92, 19, 113)
HSLhsl(287, 71%, 26%)
HSVhsv(287, 83%, 44%)
CMYKcmyk(18.6%, 83.2%, 0%, 55.7%)
CIE-LABlab(23.45, 45.61, -37.47)
CIE-LCHlch(23.45, 59.03, 320.60°)
OKLaboklab(36.05% 0.1137 -0.1056)
OKLCHoklch(36.05% 0.155 317.1)
XYZxyz(7.6267, 3.9336, 15.9771)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1371 #287113
analogous
#2D1371 #5C1371 #711357
triadic
#5C1371 #715C13 #13715C
tetradic
#5C1371 #712D13 #287113 #135771
square
#5C1371 #712D13 #287113 #135771
split-complementary
#5C1371 #577113 #13712D
monochromatic
#15041A #310A3D #5C1371 #871CA5 #B125DA

Accessibility & contrast

On white

11.75
#5C1371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5C1371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1371
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1371#FFFFFF#000000##FFFFFF
##5C13711.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#153A6F
Tritanopia (blue-blind)
#5B2942
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5c1371;
/* rgb */ color: rgb(92, 19, 113);
/* oklch */ color: oklch(36.1% 0.155 317.1);
Tailwind
colors: {
  custom: {
    50: '#8e5b9a',
    500: '#5c1371',
    950: '#000000',
  },
}
SCSS
$custom: #5c1371;
$custom-light: #8e5b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1371",
  "rgb": {
    "r": 92,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 286.596,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.36054,
    "c": 0.15517,
    "h": 317.1
  },
  "luminance": 0.03933
}

Semantic roles & 50–950 ramp

primary
#5C1371
secondary
#51A838
accent
#EE3A62
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5C1371

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

Preview Lab → · Contrast checker → · Palette generator →

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