#5C1159#5C1159

#5C1159 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.2% C 0.136 H 329.9°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#5C1159
RGBrgb(92, 17, 89)
HSLhsl(302, 69%, 21%)
HSVhsv(302, 82%, 36%)
CMYKcmyk(0%, 81.5%, 3.3%, 63.9%)
CIE-LABlab(21.57, 41.65, -24.75)
CIE-LCHlch(21.57, 48.45, 329.28°)
OKLaboklab(34.2% 0.1178 -0.0684)
OKLCHoklch(34.2% 0.136 329.9)
XYZxyz(6.4172, 3.3980, 9.7671)
Luminance0.0340 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1159 #115C14
analogous
#3A115C #5C1159 #5C1134
triadic
#5C1159 #595C11 #11595C
tetradic
#5C1159 #5C3A11 #115C14 #11345C
square
#5C1159 #5C3A11 #115C14 #11345C
split-complementary
#5C1159 #345C11 #115C3A
monochromatic
#1A0519 #280727 #5C1159 #901B8B #C324BD

Accessibility & contrast

On white

12.50
#5C1159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5C1159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1159
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1159#FFFFFF#000000##FFFFFF
##5C11591.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062D5B
Deuteranopia (green-blind)
#283757
Tritanopia (blue-blind)
#601C34
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5c1159;
/* rgb */ color: rgb(92, 17, 89);
/* oklch */ color: oklch(34.2% 0.136 329.9);
Tailwind
colors: {
  custom: {
    50: '#8d5988',
    500: '#5c1159',
    950: '#000000',
  },
}
SCSS
$custom: #5c1159;
$custom-light: #8d5988;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1159",
  "rgb": {
    "r": 92,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 302.4,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.34196,
    "c": 0.13621,
    "h": 329.9
  },
  "luminance": 0.03397
}

Semantic roles & 50–950 ramp

primary
#5C1159
secondary
#349538
accent
#EC433C
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040B
muted
#7D797C

Preview Lab

Preview with #5C1159

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

Preview Lab → · Contrast checker → · Palette generator →

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