#9F173D#9F173D

#9F173D is a mid, vivid pink. Relative luminance 0.083; OKLCH L 45.8% C 0.169 H 12.4°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#9F173D
RGBrgb(159, 23, 61)
HSLhsl(343, 75%, 36%)
HSVhsv(343, 86%, 62%)
CMYKcmyk(0%, 85.5%, 61.6%, 37.6%)
CIE-LABlab(34.65, 54.56, 14.73)
CIE-LCHlch(34.65, 56.52, 15.10°)
OKLaboklab(45.82% 0.1646 0.0362)
OKLCHoklch(45.82% 0.169 12.4)
XYZxyz(15.4484, 8.3230, 5.2070)
Luminance0.0832 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F173D #179F79
analogous
#9F1781 #9F173D #9F3517
triadic
#9F173D #3D9F17 #173D9F
tetradic
#9F173D #819F17 #179F79 #35179F
square
#9F173D #819F17 #179F79 #35179F
split-complementary
#9F173D #179F35 #17819F
monochromatic
#340814 #6A0F28 #9F173D #D41F52 #E54B76

Accessibility & contrast

On white

7.88
#9F173D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#9F173D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F173D
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F173D#FFFFFF#000000##FFFFFF
##9F173D1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41403D
Deuteranopia (green-blind)
#635B39
Tritanopia (blue-blind)
#AF0029
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #9f173d;
/* rgb */ color: rgb(159, 23, 61);
/* oklch */ color: oklch(45.8% 0.169 12.4);
Tailwind
colors: {
  custom: {
    50: '#c36672',
    500: '#9f173d',
    950: '#000000',
  },
}
SCSS
$custom: #9f173d;
$custom-light: #c36672;
$custom-dark: #000000;
JSON
{
  "hex": "#9f173d",
  "rgb": {
    "r": 159,
    "g": 23,
    "b": 61
  },
  "hsl": {
    "h": 343.235,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45818,
    "c": 0.16853,
    "h": 12.4
  },
  "luminance": 0.08321
}

Semantic roles & 50–950 ramp

primary
#9F173D
secondary
#4BC7A4
accent
#F1BD36
background
#FCF6F6
surface
#F9EBEC
border
#D2C6C7
text
#140707
muted
#827A7A

Preview Lab

Preview with #9F173D

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

Preview Lab → · Contrast checker → · Palette generator →

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