#5C1478#5C1478

#5C1478 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.7% C 0.161 H 313.9°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#5C1478
RGBrgb(92, 20, 120)
HSLhsl(283, 71%, 27%)
HSVhsv(283, 83%, 47%)
CMYKcmyk(23.3%, 83.3%, 0%, 52.9%)
CIE-LABlab(24.10, 46.75, -40.90)
CIE-LCHlch(24.10, 62.12, 318.82°)
OKLaboklab(36.68% 0.1115 -0.1157)
OKLCHoklch(36.68% 0.161 313.9)
XYZxyz(8.0534, 4.1320, 18.1390)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1478 #307814
analogous
#2A1478 #5C1478 #781462
triadic
#5C1478 #785C14 #14785C
tetradic
#5C1478 #782A14 #307814 #146278
square
#5C1478 #782A14 #307814 #146278
split-complementary
#5C1478 #627814 #14782A
monochromatic
#14041A #340B44 #5C1478 #841DAC #AA2BDC

Accessibility & contrast

On white

11.50
#5C1478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1478
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1478#FFFFFF#000000##FFFFFF
##5C14781.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#083B76
Tritanopia (blue-blind)
#592D47
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5c1478;
/* rgb */ color: rgb(92, 20, 120);
/* oklch */ color: oklch(36.7% 0.161 313.9);
Tailwind
colors: {
  custom: {
    50: '#8e5ca0',
    500: '#5c1478',
    950: '#000000',
  },
}
SCSS
$custom: #5c1478;
$custom-light: #8e5ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1478",
  "rgb": {
    "r": 92,
    "g": 20,
    "b": 120
  },
  "hsl": {
    "h": 283.2,
    "s": 71.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.36682,
    "c": 0.16065,
    "h": 313.9
  },
  "luminance": 0.04132
}

Semantic roles & 50–950 ramp

primary
#5C1478
secondary
#5AAE3A
accent
#EE3A6C
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040F
muted
#7E797E

Preview Lab

Preview with #5C1478

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

Preview Lab → · Contrast checker → · Palette generator →

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