#5C1372#5C1372

#5C1372 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.156 H 316.7°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#5C1372
RGBrgb(92, 19, 114)
HSLhsl(286, 71%, 26%)
HSVhsv(286, 83%, 45%)
CMYKcmyk(19.3%, 83.3%, 0%, 55.3%)
CIE-LABlab(23.53, 45.82, -37.99)
CIE-LCHlch(23.53, 59.52, 320.34°)
OKLaboklab(36.13% 0.1135 -0.1071)
OKLCHoklch(36.13% 0.156 316.7)
XYZxyz(7.6833, 3.9563, 16.2752)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1372 #297213
analogous
#2C1372 #5C1372 #721358
triadic
#5C1372 #725C13 #13725C
tetradic
#5C1372 #722C13 #297213 #135872
square
#5C1372 #722C13 #297213 #135872
split-complementary
#5C1372 #587213 #13722C
monochromatic
#15041A #320A3E #5C1372 #861CA6 #B125DB

Accessibility & contrast

On white

11.72
#5C1372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1372
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1372#FFFFFF#000000##FFFFFF
##5C13721.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003475
Deuteranopia (green-blind)
#133A70
Tritanopia (blue-blind)
#5B2943
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5c1372;
/* rgb */ color: rgb(92, 19, 114);
/* oklch */ color: oklch(36.1% 0.156 316.7);
Tailwind
colors: {
  custom: {
    50: '#8e5b9b',
    500: '#5c1372',
    950: '#000000',
  },
}
SCSS
$custom: #5c1372;
$custom-light: #8e5b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1372",
  "rgb": {
    "r": 92,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 286.105,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.36131,
    "c": 0.15609,
    "h": 316.7
  },
  "luminance": 0.03956
}

Semantic roles & 50–950 ramp

primary
#5C1372
secondary
#52A938
accent
#EE3A63
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5C1372

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

Preview Lab → · Contrast checker → · Palette generator →

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