#5C1671#5C1671

#5C1671 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.3% C 0.152 H 316.9°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#5C1671
RGBrgb(92, 22, 113)
HSLhsl(286, 67%, 26%)
HSVhsv(286, 81%, 44%)
CMYKcmyk(18.6%, 80.5%, 0%, 55.7%)
CIE-LABlab(23.81, 44.58, -36.89)
CIE-LCHlch(23.81, 57.86, 320.39°)
OKLaboklab(36.31% 0.1111 -0.1039)
OKLCHoklch(36.31% 0.152 316.9)
XYZxyz(7.6807, 4.0417, 15.9951)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1671 #2B7116
analogous
#2F1671 #5C1671 #711659
triadic
#5C1671 #715C16 #16715C
tetradic
#5C1671 #712F16 #2B7116 #165971
square
#5C1671 #712F16 #2B7116 #165971
split-complementary
#5C1671 #597116 #16712F
monochromatic
#15051A #320C3E #5C1671 #8620A4 #AF2CD6

Accessibility & contrast

On white

11.61
#5C1671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1671
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1671#FFFFFF#000000##FFFFFF
##5C16711.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#173B6F
Tritanopia (blue-blind)
#5B2A43
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5c1671;
/* rgb */ color: rgb(92, 22, 113);
/* oklch */ color: oklch(36.3% 0.152 316.9);
Tailwind
colors: {
  custom: {
    50: '#8e5c9a',
    500: '#5c1671',
    950: '#000000',
  },
}
SCSS
$custom: #5c1671;
$custom-light: #8e5c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1671",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 286.154,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.36307,
    "c": 0.1521,
    "h": 316.9
  },
  "luminance": 0.04041
}

Semantic roles & 50–950 ramp

primary
#5C1671
secondary
#55A73C
accent
#EA3E65
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5C1671

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

Preview Lab → · Contrast checker → · Palette generator →

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