#5C1173#5C1173

#5C1173 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 36.1% C 0.159 H 316.3°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#5C1173
RGBrgb(92, 17, 115)
HSLhsl(286, 74%, 26%)
HSVhsv(286, 85%, 45%)
CMYKcmyk(20%, 85.2%, 0%, 54.9%)
CIE-LABlab(23.39, 46.66, -38.86)
CIE-LCHlch(23.39, 60.72, 320.21°)
OKLaboklab(36.06% 0.1149 -0.1097)
OKLCHoklch(36.06% 0.159 316.3)
XYZxyz(7.7081, 3.9143, 16.5658)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1173 #287311
analogous
#2B1173 #5C1173 #731159
triadic
#5C1173 #735C11 #11735C
tetradic
#5C1173 #732B11 #287311 #115973
square
#5C1173 #732B11 #287311 #115973
split-complementary
#5C1173 #597311 #11732B
monochromatic
#15041B #31093E #5C1173 #8719A8 #B121DE

Accessibility & contrast

On white

11.78
#5C1173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5C1173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1173
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1173#FFFFFF#000000##FFFFFF
##5C11731.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003376
Deuteranopia (green-blind)
#103A71
Tritanopia (blue-blind)
#5A2943
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5c1173;
/* rgb */ color: rgb(92, 17, 115);
/* oklch */ color: oklch(36.1% 0.159 316.3);
Tailwind
colors: {
  custom: {
    50: '#8e5b9c',
    500: '#5c1173',
    950: '#000000',
  },
}
SCSS
$custom: #5c1173;
$custom-light: #8e5b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1173",
  "rgb": {
    "r": 92,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 285.918,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.36057,
    "c": 0.15885,
    "h": 316.3
  },
  "luminance": 0.03914
}

Semantic roles & 50–950 ramp

primary
#5C1173
secondary
#51AA36
accent
#F13763
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5C1173

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

Preview Lab → · Contrast checker → · Palette generator →

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