#5C1271#5C1271

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

Color values

HEX#5C1271
RGBrgb(92, 18, 113)
HSLhsl(287, 73%, 26%)
HSVhsv(287, 84%, 44%)
CMYKcmyk(18.6%, 84.1%, 0%, 55.7%)
CIE-LABlab(23.34, 45.94, -37.65)
CIE-LCHlch(23.34, 59.39, 320.66°)
OKLaboklab(35.98% 0.1145 -0.1061)
OKLCHoklch(35.98% 0.156 317.2)
XYZxyz(7.6101, 3.9005, 15.9716)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1271 #277112
analogous
#2C1271 #5C1271 #711256
triadic
#5C1271 #715C12 #12715C
tetradic
#5C1271 #712C12 #277112 #125671
square
#5C1271 #712C12 #277112 #125671
split-complementary
#5C1271 #567112 #12712C
monochromatic
#15041A #310A3C #5C1271 #871AA6 #B223DB

Accessibility & contrast

On white

11.80
#5C1271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5C1271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1271
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1271#FFFFFF#000000##FFFFFF
##5C12711.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#143A6F
Tritanopia (blue-blind)
#5B2842
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5c1271;
/* rgb */ color: rgb(92, 18, 113);
/* oklch */ color: oklch(36.0% 0.156 317.2);
Tailwind
colors: {
  custom: {
    50: '#8e5b9a',
    500: '#5c1271',
    950: '#000000',
  },
}
SCSS
$custom: #5c1271;
$custom-light: #8e5b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1271",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 286.737,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35976,
    "c": 0.15614,
    "h": 317.2
  },
  "luminance": 0.039
}

Semantic roles & 50–950 ramp

primary
#5C1271
secondary
#50A837
accent
#EF3961
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5C1271

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

Preview Lab → · Contrast checker → · Palette generator →

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