#5C1276#5C1276

#5C1276 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.4% C 0.161 H 314.9°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#5C1276
RGBrgb(92, 18, 118)
HSLhsl(284, 74%, 27%)
HSVhsv(284, 85%, 46%)
CMYKcmyk(22%, 84.7%, 0%, 53.7%)
CIE-LABlab(23.72, 46.97, -40.24)
CIE-LCHlch(23.72, 61.85, 319.42°)
OKLaboklab(36.37% 0.1135 -0.1137)
OKLCHoklch(36.37% 0.161 314.9)
XYZxyz(7.8994, 4.0162, 17.4951)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1276 #2C7612
analogous
#2A1276 #5C1276 #76125E
triadic
#5C1276 #765C12 #12765C
tetradic
#5C1276 #762A12 #2C7612 #125E76
square
#5C1276 #762A12 #2C7612 #125E76
split-complementary
#5C1276 #5E7612 #12762A
monochromatic
#15041B #330A41 #5C1276 #851AAB #AE25DE

Accessibility & contrast

On white

11.65
#5C1276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5C1276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1276
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1276#FFFFFF#000000##FFFFFF
##5C12761.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#0B3A74
Tritanopia (blue-blind)
#5A2B45
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5c1276;
/* rgb */ color: rgb(92, 18, 118);
/* oklch */ color: oklch(36.4% 0.161 314.9);
Tailwind
colors: {
  custom: {
    50: '#8e5b9e',
    500: '#5c1276',
    950: '#000000',
  },
}
SCSS
$custom: #5c1276;
$custom-light: #8e5b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1276",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 284.4,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36368,
    "c": 0.16067,
    "h": 314.9
  },
  "luminance": 0.04016
}

Semantic roles & 50–950 ramp

primary
#5C1276
secondary
#56AD37
accent
#F03868
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5C1276

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

Preview Lab → · Contrast checker → · Palette generator →

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