#9D174D color
The swatch above shows #9D174D with its hex code written on it in white and in black, so you can see which of the two is legible before reading the measured ratios below.
#9D174D is a dark, vivid red, closest to the CSS named color brown (#A52A2A).
It is also a Tailwind CSS default: pink-800. That means you can write bg-pink-800 or text-pink-800 directly, with no arbitrary-value brackets and no entry in your theme config.
Color values
| HEX | #9D174D |
| RGB | rgb(157, 23, 77) |
| HSL | hsl(336, 74%, 35%) |
| CMYK | cmyk(0%, 85%, 51%, 38%) |
| Decimal | 10295117 |
| CSS | color: #9D174D; |
| Android | 0xFF9D174D |
| Swift | UIColor(red: 0.616, green: 0.090, blue: 0.302, alpha: 1) |
Accessibility and contrast
| White text on #9D174D | 7.88:1 — AA pass · AA large pass · AAA pass |
| Black text on #9D174D | 2.66:1 — AA fail · AA large fail · AAA fail |
| Recommended text color | white |
WCAG 2.1 asks for at least 4.5:1 for body text and 3:1 for large text (18 pt, or 14 pt bold).
Tints and shades of #9D174D
Each swatch keeps the hue and saturation of #9D174D and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #9D174D
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #9D174D in code
/* CSS */
.element { color: #9D174D; background-color: #9D174D; }
.element { color: rgb(157 23 77); }
.element { color: hsl(336 74% 35%); }
/* Tailwind */
<div class="bg-pink-800 text-white">
/* SCSS variable */
$brand: #9D174D;
Frequently asked questions
What color is #9D174D?
#9D174D is a dark, vivid red. Its hue sits at 336° on the color wheel, with 74% saturation and 35% lightness.
What is #9D174D in RGB?
#9D174D converts to rgb(157, 23, 77) — 157 red, 23 green and 77 blue.
What is #9D174D in CMYK?
Approximately cmyk(0%, 85%, 51%, 38%). Print output depends on the ICC profile of the press and paper, so treat this as a starting point rather than an exact match.
Should text on #9D174D be white or black?
White gives the better contrast ratio (7.88:1 versus 2.66:1).
What is the complementary color of #9D174D?
#179B66 — the hue directly opposite #9D174D on the color wheel.