#5F174B#5F174B

#5F174B is a dark, moderate pink. Relative luminance 0.036; OKLCH L 34.5% C 0.120 H 341.1°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#5F174B
RGBrgb(95, 23, 75)
HSLhsl(317, 61%, 23%)
HSVhsv(317, 76%, 37%)
CMYKcmyk(0%, 75.8%, 21.1%, 62.7%)
CIE-LABlab(22.14, 37.91, -14.40)
CIE-LCHlch(22.14, 40.55, 339.20°)
OKLaboklab(34.46% 0.1134 -0.0387)
OKLCHoklch(34.46% 0.12 341.1)
XYZxyz(6.2959, 3.5543, 7.0097)
Luminance0.0355 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F174B #175F2B
analogous
#4F175F #5F174B #5F1727
triadic
#5F174B #4B5F17 #174B5F
tetradic
#5F174B #5F4F17 #175F2B #17275F
square
#5F174B #5F4F17 #175F2B #17275F
split-complementary
#5F174B #275F17 #175F4F
monochromatic
#190613 #2E0B24 #5F174B #902372 #C22F99

Accessibility & contrast

On white

12.27
#5F174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F174B
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F174B#FFFFFF#000000##FFFFFF
##5F174B1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2E4C
Deuteranopia (green-blind)
#333949
Tritanopia (blue-blind)
#65182E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f174b;
/* rgb */ color: rgb(95, 23, 75);
/* oklch */ color: oklch(34.5% 0.120 341.1);
Tailwind
colors: {
  custom: {
    50: '#8f5b7d',
    500: '#5f174b',
    950: '#000000',
  },
}
SCSS
$custom: #5f174b;
$custom-light: #8f5b7d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f174b",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 316.667,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.34462,
    "c": 0.11978,
    "h": 341.1
  },
  "luminance": 0.03554
}

Semantic roles & 50–950 ramp

primary
#5F174B
secondary
#3C9655
accent
#E47044
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D0409
muted
#7E797B

Preview Lab

Preview with #5F174B

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

Preview Lab → · Contrast checker → · Palette generator →

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