#5D1F4E#5D1F4E

#5D1F4E is a dark, moderate pink. Relative luminance 0.039; OKLCH L 35.2% C 0.109 H 338.4°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#5D1F4E
RGBrgb(93, 31, 78)
HSLhsl(315, 50%, 24%)
HSVhsv(315, 67%, 36%)
CMYKcmyk(0%, 66.7%, 16.1%, 63.5%)
CIE-LABlab(23.20, 34.25, -14.82)
CIE-LCHlch(23.20, 37.32, 336.60°)
OKLaboklab(35.21% 0.101 -0.04)
OKLCHoklch(35.21% 0.109 338.4)
XYZxyz(6.3794, 3.8577, 7.6149)
Luminance0.0386 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1F4E #1F5D2E
analogous
#4D1F5D #5D1F4E #5D1F2F
triadic
#5D1F4E #4E5D1F #1F4E5D
tetradic
#5D1F4E #5D4D1F #1F5D2E #1F2F5D
square
#5D1F4E #5D4D1F #1F5D2E #1F2F5D
split-complementary
#5D1F4E #2F5D1F #1F5D4D
monochromatic
#170813 #2F1028 #5D1F4E #8B2E74 #B93E9B

Accessibility & contrast

On white

11.86
#5D1F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5D1F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1F4E
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1F4E#FFFFFF#000000##FFFFFF
##5D1F4E1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21314F
Deuteranopia (green-blind)
#343B4C
Tritanopia (blue-blind)
#622133
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5d1f4e;
/* rgb */ color: rgb(93, 31, 78);
/* oklch */ color: oklch(35.2% 0.109 338.4);
Tailwind
colors: {
  custom: {
    50: '#8d5f7f',
    500: '#5d1f4e',
    950: '#000000',
  },
}
SCSS
$custom: #5d1f4e;
$custom-light: #8d5f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1f4e",
  "rgb": {
    "r": 93,
    "g": 31,
    "b": 78
  },
  "hsl": {
    "h": 314.516,
    "s": 50,
    "l": 24.314
  },
  "oklch": {
    "l": 0.35209,
    "c": 0.10863,
    "h": 338.4
  },
  "luminance": 0.03857
}

Semantic roles & 50–950 ramp

primary
#5D1F4E
secondary
#469258
accent
#DA704E
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C050A
muted
#7D797C

Preview Lab

Preview with #5D1F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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