#5C1879#5C1879

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

Color values

HEX#5C1879
RGBrgb(92, 24, 121)
HSLhsl(282, 67%, 28%)
HSVhsv(282, 80%, 47%)
CMYKcmyk(24%, 80.2%, 0%, 52.5%)
CIE-LABlab(24.67, 45.55, -40.63)
CIE-LCHlch(24.67, 61.04, 318.27°)
OKLaboklab(37.1% 0.1078 -0.1149)
OKLCHoklch(37.1% 0.158 313.2)
XYZxyz(8.1908, 4.3093, 18.4858)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1879 #357918
analogous
#2B1879 #5C1879 #791865
triadic
#5C1879 #795C18 #18795C
tetradic
#5C1879 #792B18 #357918 #186579
square
#5C1879 #792B18 #357918 #186579
split-complementary
#5C1879 #657918 #18792B
monochromatic
#13051A #350E46 #5C1879 #8322AC #A635D7

Accessibility & contrast

On white

11.28
#5C1879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5C1879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1879
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1879#FFFFFF#000000##FFFFFF
##5C18791.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c1879;
/* rgb */ color: rgb(92, 24, 121);
/* oklch */ color: oklch(37.1% 0.158 313.2);
Tailwind
colors: {
  custom: {
    50: '#8e5ea0',
    500: '#5c1879',
    950: '#000000',
  },
}
SCSS
$custom: #5c1879;
$custom-light: #8e5ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1879",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 282.062,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37104,
    "c": 0.15755,
    "h": 313.2
  },
  "luminance": 0.04309
}

Semantic roles & 50–950 ramp

primary
#5C1879
secondary
#60AE3F
accent
#EA3E71
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5C1879

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

Preview Lab → · Contrast checker → · Palette generator →

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