#9E174F#9E174F

#9E174F is a mid, vivid pink. Relative luminance 0.084; OKLCH L 46.1% C 0.171 H 3.0°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#9E174F
RGBrgb(158, 23, 79)
HSLhsl(335, 75%, 35%)
HSVhsv(335, 85%, 62%)
CMYKcmyk(0%, 85.4%, 50%, 38%)
CIE-LABlab(34.90, 55.64, 3.32)
CIE-LCHlch(34.90, 55.74, 3.42°)
OKLaboklab(46.12% 0.1708 0.0091)
OKLCHoklch(46.12% 0.171 3)
XYZxyz(15.8196, 8.4487, 8.1934)
Luminance0.0845 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E174F #179E66
analogous
#9E1792 #9E174F #9E2217
triadic
#9E174F #4F9E17 #174F9E
tetradic
#9E174F #929E17 #179E66 #22179E
square
#9E174F #929E17 #179E66 #22179E
split-complementary
#9E174F #179E22 #17929E
monochromatic
#33071A #690F34 #9E174F #D31F6A #E54B8B

Accessibility & contrast

On white

7.81
#9E174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#9E174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E174F
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E174F#FFFFFF#000000##FFFFFF
##9E174F1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C4150
Deuteranopia (green-blind)
#5F5B4C
Tritanopia (blue-blind)
#AC0032
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #9e174f;
/* rgb */ color: rgb(158, 23, 79);
/* oklch */ color: oklch(46.1% 0.171 3.0);
Tailwind
colors: {
  custom: {
    50: '#c16680',
    500: '#9e174f',
    950: '#000000',
  },
}
SCSS
$custom: #9e174f;
$custom-light: #c16680;
$custom-dark: #000000;
JSON
{
  "hex": "#9e174f",
  "rgb": {
    "r": 158,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 335.111,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46117,
    "c": 0.17103,
    "h": 3
  },
  "luminance": 0.08446
}

Semantic roles & 50–950 ramp

primary
#9E174F
secondary
#4AC693
accent
#F1A437
background
#FCF6F7
surface
#F8EBEE
border
#D1C6C9
text
#13070A
muted
#827A7C

Preview Lab

Preview with #9E174F

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

Preview Lab → · Contrast checker → · Palette generator →

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