#5F174C#5F174C

#5F174C is a dark, vivid pink. Relative luminance 0.036; OKLCH L 34.5% C 0.121 H 340.4°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#5F174C
RGBrgb(95, 23, 76)
HSLhsl(316, 61%, 23%)
HSVhsv(316, 76%, 37%)
CMYKcmyk(0%, 75.8%, 20%, 62.7%)
CIE-LABlab(22.19, 38.07, -15.00)
CIE-LCHlch(22.19, 40.92, 338.49°)
OKLaboklab(34.51% 0.1135 -0.0404)
OKLCHoklch(34.51% 0.121 340.4)
XYZxyz(6.3304, 3.5681, 7.1914)
Luminance0.0357 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F174C #175F2A
analogous
#4E175F #5F174C #5F1728
triadic
#5F174C #4C5F17 #174C5F
tetradic
#5F174C #5F4E17 #175F2A #17285F
square
#5F174C #5F4E17 #175F2A #17285F
split-complementary
#5F174C #285F17 #175F4E
monochromatic
#190614 #2E0B25 #5F174C #902373 #C22F9B

Accessibility & contrast

On white

12.26
#5F174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5F174C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F174C
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F174C#FFFFFF#000000##FFFFFF
##5F174C1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2E4D
Deuteranopia (green-blind)
#33394A
Tritanopia (blue-blind)
#65192F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f174c;
/* rgb */ color: rgb(95, 23, 76);
/* oklch */ color: oklch(34.5% 0.121 340.4);
Tailwind
colors: {
  custom: {
    50: '#8f5b7e',
    500: '#5f174c',
    950: '#000000',
  },
}
SCSS
$custom: #5f174c;
$custom-light: #8f5b7e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f174c",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 315.833,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.34514,
    "c": 0.12052,
    "h": 340.4
  },
  "luminance": 0.03567
}

Semantic roles & 50–950 ramp

primary
#5F174C
secondary
#3C9654
accent
#E46E44
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F174C

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

Preview Lab → · Contrast checker → · Palette generator →

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