#5C124E#5C124E

#5C124E is a dark, vivid pink. Relative luminance 0.033; OKLCH L 33.6% C 0.126 H 336.9°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#5C124E
RGBrgb(92, 18, 78)
HSLhsl(311, 67%, 22%)
HSVhsv(311, 80%, 36%)
CMYKcmyk(0%, 80.4%, 15.2%, 63.9%)
CIE-LABlab(21.05, 39.44, -18.17)
CIE-LCHlch(21.05, 43.43, 335.26°)
OKLaboklab(33.62% 0.1162 -0.0495)
OKLCHoklch(33.62% 0.126 336.9)
XYZxyz(6.0052, 3.2585, 7.5189)
Luminance0.0326 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C124E #125C20
analogous
#45125C #5C124E #5C1229
triadic
#5C124E #4E5C12 #124E5C
tetradic
#5C124E #5C4512 #125C20 #12295C
square
#5C124E #5C4512 #125C20 #12295C
split-complementary
#5C124E #295C12 #125C45
monochromatic
#1A0516 #290823 #5C124E #8F1C79 #C226A5

Accessibility & contrast

On white

12.71
#5C124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5C124E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C124E
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C124E#FFFFFF#000000##FFFFFF
##5C124E1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142B50
Deuteranopia (green-blind)
#2E374C
Tritanopia (blue-blind)
#61172E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5c124e;
/* rgb */ color: rgb(92, 18, 78);
/* oklch */ color: oklch(33.6% 0.126 336.9);
Tailwind
colors: {
  custom: {
    50: '#8d597f',
    500: '#5c124e',
    950: '#000000',
  },
}
SCSS
$custom: #5c124e;
$custom-light: #8d597f;
$custom-dark: #000000;
JSON
{
  "hex": "#5c124e",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 311.351,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.33615,
    "c": 0.12628,
    "h": 336.9
  },
  "luminance": 0.03258
}

Semantic roles & 50–950 ramp

primary
#5C124E
secondary
#359447
accent
#EA5E3E
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0D040A
muted
#7D797C

Preview Lab

Preview with #5C124E

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

Preview Lab → · Contrast checker → · Palette generator →

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