#5C1272#5C1272

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

Color values

HEX#5C1272
RGBrgb(92, 18, 114)
HSLhsl(286, 73%, 26%)
HSVhsv(286, 84%, 45%)
CMYKcmyk(19.3%, 84.2%, 0%, 55.3%)
CIE-LABlab(23.42, 46.14, -38.17)
CIE-LCHlch(23.42, 59.88, 320.40°)
OKLaboklab(36.05% 0.1144 -0.1076)
OKLCHoklch(36.05% 0.157 316.7)
XYZxyz(7.6667, 3.9232, 16.2697)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1272 #287212
analogous
#2C1272 #5C1272 #721258
triadic
#5C1272 #725C12 #12725C
tetradic
#5C1272 #722C12 #287212 #125872
square
#5C1272 #722C12 #287212 #125872
split-complementary
#5C1272 #587212 #12722C
monochromatic
#15041A #310A3D #5C1272 #871AA7 #B123DC

Accessibility & contrast

On white

11.77
#5C1272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1272
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1272#FFFFFF#000000##FFFFFF
##5C12721.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003375
Deuteranopia (green-blind)
#123A70
Tritanopia (blue-blind)
#5B2943
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5c1272;
/* rgb */ color: rgb(92, 18, 114);
/* oklch */ color: oklch(36.1% 0.157 316.7);
Tailwind
colors: {
  custom: {
    50: '#8e5b9b',
    500: '#5c1272',
    950: '#000000',
  },
}
SCSS
$custom: #5c1272;
$custom-light: #8e5b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1272",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 286.25,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.36054,
    "c": 0.15704,
    "h": 316.7
  },
  "luminance": 0.03923
}

Semantic roles & 50–950 ramp

primary
#5C1272
secondary
#51A937
accent
#EF3862
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5C1272

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

Preview Lab → · Contrast checker → · Palette generator →

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