#9F174B#9F174B

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

Color values

HEX#9F174B
RGBrgb(159, 23, 75)
HSLhsl(337, 75%, 36%)
HSVhsv(337, 86%, 62%)
CMYKcmyk(0%, 85.5%, 52.8%, 37.6%)
CIE-LABlab(34.99, 55.57, 6.08)
CIE-LCHlch(34.99, 55.90, 6.25°)
OKLaboklab(46.18% 0.1701 0.0159)
OKLCHoklch(46.18% 0.171 5.3)
XYZxyz(15.8760, 8.4940, 7.4588)
Luminance0.0849 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F174B #179F6B
analogous
#9F178F #9F174B #9F2717
triadic
#9F174B #4B9F17 #174B9F
tetradic
#9F174B #8F9F17 #179F6B #27179F
square
#9F174B #8F9F17 #179F6B #27179F
split-complementary
#9F174B #179F27 #178F9F
monochromatic
#340819 #6A0F32 #9F174B #D41F64 #E54B86

Accessibility & contrast

On white

7.78
#9F174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9F174B
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F174B#FFFFFF#000000##FFFFFF
##9F174B1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9f174b;
/* rgb */ color: rgb(159, 23, 75);
/* oklch */ color: oklch(46.2% 0.171 5.3);
Tailwind
colors: {
  custom: {
    50: '#c2667d',
    500: '#9f174b',
    950: '#000000',
  },
}
SCSS
$custom: #9f174b;
$custom-light: #c2667d;
$custom-dark: #000000;
JSON
{
  "hex": "#9f174b",
  "rgb": {
    "r": 159,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 337.059,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46183,
    "c": 0.17081,
    "h": 5.3
  },
  "luminance": 0.08492
}

Semantic roles & 50–950 ramp

primary
#9F174B
secondary
#4BC797
accent
#F1AA36
background
#FCF6F7
surface
#F9EBEE
border
#D2C6C9
text
#140709
muted
#827A7B

Preview Lab

Preview with #9F174B

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

Preview Lab → · Contrast checker → · Palette generator →

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