#5C1578#5C1578

#5C1578 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.160 H 313.9°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#5C1578
RGBrgb(92, 21, 120)
HSLhsl(283, 70%, 28%)
HSVhsv(283, 83%, 47%)
CMYKcmyk(23.3%, 82.5%, 0%, 52.9%)
CIE-LABlab(24.22, 46.41, -40.72)
CIE-LCHlch(24.22, 61.74, 318.74°)
OKLaboklab(36.76% 0.1107 -0.1151)
OKLCHoklch(36.76% 0.16 313.9)
XYZxyz(8.0714, 4.1680, 18.1450)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1578 #317815
analogous
#2A1578 #5C1578 #781563
triadic
#5C1578 #785C15 #15785C
tetradic
#5C1578 #782A15 #317815 #156378
square
#5C1578 #782A15 #317815 #156378
split-complementary
#5C1578 #637815 #15782A
monochromatic
#14051A #340C44 #5C1578 #841EAC #A92DDA

Accessibility & contrast

On white

11.45
#5C1578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5C1578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1578
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1578#FFFFFF#000000##FFFFFF
##5C15781.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#0A3B76
Tritanopia (blue-blind)
#592D47
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5c1578;
/* rgb */ color: rgb(92, 21, 120);
/* oklch */ color: oklch(36.8% 0.160 313.9);
Tailwind
colors: {
  custom: {
    50: '#8e5ca0',
    500: '#5c1578',
    950: '#000000',
  },
}
SCSS
$custom: #5c1578;
$custom-light: #8e5ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1578",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 283.03,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.36764,
    "c": 0.15969,
    "h": 313.9
  },
  "luminance": 0.04168
}

Semantic roles & 50–950 ramp

primary
#5C1578
secondary
#5CAE3B
accent
#ED3B6D
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040F
muted
#7E797E

Preview Lab

Preview with #5C1578

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

Preview Lab → · Contrast checker → · Palette generator →

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