#5C1179#5C1179

#5C1179 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.5% C 0.164 H 313.7°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#5C1179
RGBrgb(92, 17, 121)
HSLhsl(283, 75%, 27%)
HSVhsv(283, 86%, 47%)
CMYKcmyk(24%, 86%, 0%, 52.5%)
CIE-LABlab(23.86, 47.91, -41.94)
CIE-LCHlch(23.86, 63.67, 318.80°)
OKLaboklab(36.54% 0.1136 -0.1187)
OKLCHoklch(36.54% 0.164 313.7)
XYZxyz(8.0647, 4.0570, 18.4437)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1179 #2E7911
analogous
#281179 #5C1179 #791162
triadic
#5C1179 #795C11 #11795C
tetradic
#5C1179 #792811 #2E7911 #116279
square
#5C1179 #792811 #2E7911 #116279
split-complementary
#5C1179 #627911 #117928
monochromatic
#14041B #330943 #5C1179 #8519AF #AC24E0

Accessibility & contrast

On white

11.59
#5C1179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5C1179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1179
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1179#FFFFFF#000000##FFFFFF
##5C11791.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#023A77
Tritanopia (blue-blind)
#592C47
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5c1179;
/* rgb */ color: rgb(92, 17, 121);
/* oklch */ color: oklch(36.5% 0.164 313.7);
Tailwind
colors: {
  custom: {
    50: '#8e5ba0',
    500: '#5c1179',
    950: '#000000',
  },
}
SCSS
$custom: #5c1179;
$custom-light: #8e5ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1179",
  "rgb": {
    "r": 92,
    "g": 17,
    "b": 121
  },
  "hsl": {
    "h": 283.269,
    "s": 75.362,
    "l": 27.059
  },
  "oklch": {
    "l": 0.36536,
    "c": 0.16428,
    "h": 313.7
  },
  "luminance": 0.04057
}

Semantic roles & 50–950 ramp

primary
#5C1179
secondary
#58B036
accent
#F2366A
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040F
muted
#7E797E

Preview Lab

Preview with #5C1179

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

Preview Lab → · Contrast checker → · Palette generator →

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