#5C1266#5C1266

#5C1266 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.146 H 322.6°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#5C1266
RGBrgb(92, 18, 102)
HSLhsl(293, 70%, 24%)
HSVhsv(293, 82%, 40%)
CMYKcmyk(9.8%, 82.4%, 0%, 60%)
CIE-LABlab(22.54, 43.74, -31.79)
CIE-LCHlch(22.54, 54.07, 323.99°)
OKLaboklab(35.16% 0.1162 -0.0889)
OKLCHoklch(35.16% 0.146 322.6)
XYZxyz(7.0280, 3.6677, 12.9055)
Luminance0.0367 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1266 #1C6612
analogous
#321266 #5C1266 #661246
triadic
#5C1266 #665C12 #12665C
tetradic
#5C1266 #663212 #1C6612 #124666
square
#5C1266 #663212 #1C6612 #124666
split-complementary
#5C1266 #466612 #126632
monochromatic
#17051A #2D0932 #5C1266 #8B1B9A #BA24CE

Accessibility & contrast

On white

12.11
#5C1266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5C1266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1266
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1266#FFFFFF#000000##FFFFFF
##5C12661.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003168
Deuteranopia (green-blind)
#203964
Tritanopia (blue-blind)
#5D233C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5c1266;
/* rgb */ color: rgb(92, 18, 102);
/* oklch */ color: oklch(35.2% 0.146 322.6);
Tailwind
colors: {
  custom: {
    50: '#8d5a92',
    500: '#5c1266',
    950: '#000000',
  },
}
SCSS
$custom: #5c1266;
$custom-light: #8d5a92;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1266",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 292.857,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.35159,
    "c": 0.14631,
    "h": 322.6
  },
  "luminance": 0.03667
}

Semantic roles & 50–950 ramp

primary
#5C1266
secondary
#429E36
accent
#ED3B50
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5C1266

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

Preview Lab → · Contrast checker → · Palette generator →

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