#5C1978#5C1978

#5C1978 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.1% C 0.155 H 313.5°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#5C1978
RGBrgb(92, 25, 120)
HSLhsl(282, 66%, 28%)
HSVhsv(282, 79%, 47%)
CMYKcmyk(23.3%, 79.2%, 0%, 52.9%)
CIE-LABlab(24.72, 44.96, -39.90)
CIE-LCHlch(24.72, 60.11, 318.41°)
OKLaboklab(37.12% 0.1071 -0.1128)
OKLCHoklch(37.12% 0.155 313.5)
XYZxyz(8.1508, 4.3269, 18.1715)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1978 #357819
analogous
#2C1978 #5C1978 #781964
triadic
#5C1978 #785C19 #19785C
tetradic
#5C1978 #782C19 #357819 #196478
square
#5C1978 #782C19 #357819 #196478
split-complementary
#5C1978 #647819 #19782C
monochromatic
#130519 #350E45 #5C1978 #8324AB #A636D5

Accessibility & contrast

On white

11.26
#5C1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5C1978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1978
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1978#FFFFFF#000000##FFFFFF
##5C19781.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#0F3C76
Tritanopia (blue-blind)
#592F48
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5c1978;
/* rgb */ color: rgb(92, 25, 120);
/* oklch */ color: oklch(37.1% 0.155 313.5);
Tailwind
colors: {
  custom: {
    50: '#8e5ea0',
    500: '#5c1978',
    950: '#000000',
  },
}
SCSS
$custom: #5c1978;
$custom-light: #8e5ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1978",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 282.316,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37119,
    "c": 0.15549,
    "h": 313.5
  },
  "luminance": 0.04327
}

Semantic roles & 50–950 ramp

primary
#5C1978
secondary
#60AD40
accent
#E83F71
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5C1978

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

Preview Lab → · Contrast checker → · Palette generator →

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