#5D1147#5D1147

#5D1147 is a dark, vivid pink. Relative luminance 0.032; OKLCH L 33.3% C 0.123 H 342.4°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#5D1147
RGBrgb(93, 17, 71)
HSLhsl(317, 69%, 22%)
HSVhsv(317, 82%, 36%)
CMYKcmyk(0%, 81.7%, 23.7%, 63.5%)
CIE-LABlab(20.76, 38.97, -13.83)
CIE-LCHlch(20.76, 41.35, 340.46°)
OKLaboklab(33.33% 0.1173 -0.0371)
OKLCHoklch(33.33% 0.123 342.4)
XYZxyz(5.8522, 3.1836, 6.2663)
Luminance0.0318 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1147 #115D27
analogous
#4D115D #5D1147 #5D1121
triadic
#5D1147 #475D11 #11475D
tetradic
#5D1147 #5D4D11 #115D27 #11215D
square
#5D1147 #5D4D11 #115D27 #11215D
split-complementary
#5D1147 #215D11 #115D4D
monochromatic
#1A0514 #29081F #5D1147 #911A6F #C42496

Accessibility & contrast

On white

12.83
#5D1147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#5D1147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1147
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1147#FFFFFF#000000##FFFFFF
##5D11471.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192A48
Deuteranopia (green-blind)
#313645
Tritanopia (blue-blind)
#63122A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5d1147;
/* rgb */ color: rgb(93, 17, 71);
/* oklch */ color: oklch(33.3% 0.123 342.4);
Tailwind
colors: {
  custom: {
    50: '#8e587a',
    500: '#5d1147',
    950: '#000000',
  },
}
SCSS
$custom: #5d1147;
$custom-light: #8e587a;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1147",
  "rgb": {
    "r": 93,
    "g": 17,
    "b": 71
  },
  "hsl": {
    "h": 317.368,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.33327,
    "c": 0.12301,
    "h": 342.4
  },
  "luminance": 0.03183
}

Semantic roles & 50–950 ramp

primary
#5D1147
secondary
#349650
accent
#EC6F3C
background
#F9F5F7
surface
#F1E9ED
border
#CBC5C8
text
#0D0409
muted
#7E797B

Preview Lab

Preview with #5D1147

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

Preview Lab → · Contrast checker → · Palette generator →

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