#5F174A#5F174A

#5F174A is a dark, moderate pink. Relative luminance 0.035; OKLCH L 34.4% C 0.119 H 341.9°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#5F174A
RGBrgb(95, 23, 74)
HSLhsl(318, 61%, 23%)
HSVhsv(318, 76%, 37%)
CMYKcmyk(0%, 75.8%, 22.1%, 62.7%)
CIE-LABlab(22.09, 37.76, -13.80)
CIE-LCHlch(22.09, 40.20, 339.93°)
OKLaboklab(34.41% 0.1132 -0.037)
OKLCHoklch(34.41% 0.119 341.9)
XYZxyz(6.2619, 3.5407, 6.8309)
Luminance0.0354 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F174A #175F2C
analogous
#50175F #5F174A #5F1726
triadic
#5F174A #4A5F17 #174A5F
tetradic
#5F174A #5F5017 #175F2C #17265F
square
#5F174A #5F5017 #175F2C #17265F
split-complementary
#5F174A #265F17 #175F50
monochromatic
#190613 #2E0B24 #5F174A #902370 #C22F97

Accessibility & contrast

On white

12.30
#5F174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F174A
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F174A#FFFFFF#000000##FFFFFF
##5F174A1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f174a;
/* rgb */ color: rgb(95, 23, 74);
/* oklch */ color: oklch(34.4% 0.119 341.9);
Tailwind
colors: {
  custom: {
    50: '#8f5b7c',
    500: '#5f174a',
    950: '#000000',
  },
}
SCSS
$custom: #5f174a;
$custom-light: #8f5b7c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f174a",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 317.5,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.34411,
    "c": 0.11906,
    "h": 341.9
  },
  "luminance": 0.0354
}

Semantic roles & 50–950 ramp

primary
#5F174A
secondary
#3C9656
accent
#E47244
background
#F9F5F7
surface
#F1E9EE
border
#CBC5C9
text
#0D0409
muted
#7E797B

Preview Lab

Preview with #5F174A

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

Preview Lab → · Contrast checker → · Palette generator →

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