#5C1273#5C1273

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

Color values

HEX#5C1273
RGBrgb(92, 18, 115)
HSLhsl(286, 73%, 26%)
HSVhsv(286, 84%, 45%)
CMYKcmyk(20%, 84.3%, 0%, 54.9%)
CIE-LABlab(23.49, 46.35, -38.69)
CIE-LCHlch(23.49, 60.37, 320.14°)
OKLaboklab(36.13% 0.1142 -0.1092)
OKLCHoklch(36.13% 0.158 316.3)
XYZxyz(7.7240, 3.9461, 16.5711)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1273 #297312
analogous
#2B1273 #5C1273 #731259
triadic
#5C1273 #735C12 #12735C
tetradic
#5C1273 #732B12 #297312 #125973
square
#5C1273 #732B12 #297312 #125973
split-complementary
#5C1273 #597312 #12732B
monochromatic
#15041A #320A3E #5C1273 #861AA8 #B123DD

Accessibility & contrast

On white

11.74
#5C1273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5C1273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1273
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1273#FFFFFF#000000##FFFFFF
##5C12731.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c1273;
/* rgb */ color: rgb(92, 18, 115);
/* oklch */ color: oklch(36.1% 0.158 316.3);
Tailwind
colors: {
  custom: {
    50: '#8e5b9c',
    500: '#5c1273',
    950: '#000000',
  },
}
SCSS
$custom: #5c1273;
$custom-light: #8e5b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1273",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 285.773,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.36132,
    "c": 0.15795,
    "h": 316.3
  },
  "luminance": 0.03946
}

Semantic roles & 50–950 ramp

primary
#5C1273
secondary
#52AA37
accent
#F03864
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5C1273

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

Preview Lab → · Contrast checker → · Palette generator →

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