#5C1246#5C1246

#5C1246 is a dark, vivid pink. Relative luminance 0.032; OKLCH L 33.2% C 0.120 H 342.7°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#5C1246
RGBrgb(92, 18, 70)
HSLhsl(318, 67%, 22%)
HSVhsv(318, 80%, 36%)
CMYKcmyk(0%, 80.4%, 23.9%, 63.9%)
CIE-LABlab(20.64, 38.20, -13.36)
CIE-LCHlch(20.64, 40.47, 340.73°)
OKLaboklab(33.18% 0.115 -0.0358)
OKLCHoklch(33.18% 0.12 342.7)
XYZxyz(5.7356, 3.1507, 6.0993)
Luminance0.0315 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1246 #125C28
analogous
#4D125C #5C1246 #5C1221
triadic
#5C1246 #465C12 #12465C
tetradic
#5C1246 #5C4D12 #125C28 #12215C
square
#5C1246 #5C4D12 #125C28 #12215C
split-complementary
#5C1246 #215C12 #125C4D
monochromatic
#1A0513 #29081F #5C1246 #8F1C6D #C22694

Accessibility & contrast

On white

12.88
#5C1246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5C1246 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1246
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1246#FFFFFF#000000##FFFFFF
##5C12461.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2A47
Deuteranopia (green-blind)
#313644
Tritanopia (blue-blind)
#62132A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5c1246;
/* rgb */ color: rgb(92, 18, 70);
/* oklch */ color: oklch(33.2% 0.120 342.7);
Tailwind
colors: {
  custom: {
    50: '#8d5979',
    500: '#5c1246',
    950: '#000000',
  },
}
SCSS
$custom: #5c1246;
$custom-light: #8d5979;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1246",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 70
  },
  "hsl": {
    "h": 317.838,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.33181,
    "c": 0.12042,
    "h": 342.7
  },
  "luminance": 0.0315
}

Semantic roles & 50–950 ramp

primary
#5C1246
secondary
#359452
accent
#EA713E
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0D0409
muted
#7D797B

Preview Lab

Preview with #5C1246

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

Preview Lab → · Contrast checker → · Palette generator →

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