#5C1571#5C1571

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

Color values

HEX#5C1571
RGBrgb(92, 21, 113)
HSLhsl(286, 69%, 26%)
HSVhsv(286, 81%, 44%)
CMYKcmyk(18.6%, 81.4%, 0%, 55.7%)
CIE-LABlab(23.69, 44.93, -37.09)
CIE-LCHlch(23.69, 58.27, 320.46°)
OKLaboklab(36.22% 0.112 -0.1045)
OKLCHoklch(36.22% 0.153 317)
XYZxyz(7.6620, 4.0042, 15.9889)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1571 #2A7115
analogous
#2E1571 #5C1571 #711558
triadic
#5C1571 #715C15 #15715C
tetradic
#5C1571 #712E15 #2A7115 #155871
square
#5C1571 #712E15 #2A7115 #155871
split-complementary
#5C1571 #587115 #15712E
monochromatic
#15051A #320B3D #5C1571 #861FA5 #B029D7

Accessibility & contrast

On white

11.66
#5C1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5C1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1571
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1571#FFFFFF#000000##FFFFFF
##5C15711.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c1571;
/* rgb */ color: rgb(92, 21, 113);
/* oklch */ color: oklch(36.2% 0.153 317.0);
Tailwind
colors: {
  custom: {
    50: '#8e5c9a',
    500: '#5c1571',
    950: '#000000',
  },
}
SCSS
$custom: #5c1571;
$custom-light: #8e5c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1571",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 286.304,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.3622,
    "c": 0.15315,
    "h": 317
  },
  "luminance": 0.04004
}

Semantic roles & 50–950 ramp

primary
#5C1571
secondary
#53A73B
accent
#EB3C64
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5C1571

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

Preview Lab → · Contrast checker → · Palette generator →

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