#5F174D#5F174D

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

Color values

HEX#5F174D
RGBrgb(95, 23, 77)
HSLhsl(315, 61%, 23%)
HSVhsv(315, 76%, 37%)
CMYKcmyk(0%, 75.8%, 18.9%, 62.7%)
CIE-LABlab(22.24, 38.23, -15.60)
CIE-LCHlch(22.24, 41.29, 337.80°)
OKLaboklab(34.57% 0.1137 -0.0421)
OKLCHoklch(34.57% 0.121 339.7)
XYZxyz(6.3654, 3.5821, 7.3759)
Luminance0.0358 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F174D #175F29
analogous
#4D175F #5F174D #5F1729
triadic
#5F174D #4D5F17 #174D5F
tetradic
#5F174D #5F4D17 #175F29 #17295F
square
#5F174D #5F4D17 #175F29 #17295F
split-complementary
#5F174D #295F17 #175F4D
monochromatic
#190614 #2E0B25 #5F174D #902375 #C22F9D

Accessibility & contrast

On white

12.23
#5F174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5F174D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F174D
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F174D#FFFFFF#000000##FFFFFF
##5F174D1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2E4F
Deuteranopia (green-blind)
#32394B
Tritanopia (blue-blind)
#651930
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f174d;
/* rgb */ color: rgb(95, 23, 77);
/* oklch */ color: oklch(34.6% 0.121 339.7);
Tailwind
colors: {
  custom: {
    50: '#8f5b7f',
    500: '#5f174d',
    950: '#000000',
  },
}
SCSS
$custom: #5f174d;
$custom-light: #8f5b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f174d",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 315,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.34566,
    "c": 0.12126,
    "h": 339.7
  },
  "luminance": 0.03582
}

Semantic roles & 50–950 ramp

primary
#5F174D
secondary
#3C9652
accent
#E46C44
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F174D

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

Preview Lab → · Contrast checker → · Palette generator →

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