#9F174A#9F174A

#9F174A is a mid, vivid pink. Relative luminance 0.085; OKLCH L 46.2% C 0.171 H 5.9°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#9F174A
RGBrgb(159, 23, 74)
HSLhsl(338, 75%, 36%)
HSVhsv(338, 86%, 62%)
CMYKcmyk(0%, 85.5%, 53.5%, 37.6%)
CIE-LABlab(34.96, 55.49, 6.69)
CIE-LCHlch(34.96, 55.90, 6.88°)
OKLaboklab(46.15% 0.1697 0.0174)
OKLCHoklch(46.15% 0.171 5.9)
XYZxyz(15.8420, 8.4804, 7.2799)
Luminance0.0848 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F174A #179F6C
analogous
#9F178E #9F174A #9F2817
triadic
#9F174A #4A9F17 #174A9F
tetradic
#9F174A #8E9F17 #179F6C #28179F
square
#9F174A #8E9F17 #179F6C #28179F
split-complementary
#9F174A #179F28 #178E9F
monochromatic
#340818 #6A0F31 #9F174A #D41F63 #E54B85

Accessibility & contrast

On white

7.79
#9F174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#9F174A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F174A
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F174A#FFFFFF#000000##FFFFFF
##9F174A1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E414B
Deuteranopia (green-blind)
#615C47
Tritanopia (blue-blind)
#AE002F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #9f174a;
/* rgb */ color: rgb(159, 23, 74);
/* oklch */ color: oklch(46.2% 0.171 5.9);
Tailwind
colors: {
  custom: {
    50: '#c2667c',
    500: '#9f174a',
    950: '#000000',
  },
}
SCSS
$custom: #9f174a;
$custom-light: #c2667c;
$custom-dark: #000000;
JSON
{
  "hex": "#9f174a",
  "rgb": {
    "r": 159,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 337.5,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46154,
    "c": 0.17059,
    "h": 5.9
  },
  "luminance": 0.08478
}

Semantic roles & 50–950 ramp

primary
#9F174A
secondary
#4BC798
accent
#F1AB36
background
#FCF6F7
surface
#F9EBEE
border
#D2C6C9
text
#140709
muted
#827A7B

Preview Lab

Preview with #9F174A

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

Preview Lab → · Contrast checker → · Palette generator →

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