#7F1D1D color
The swatch above shows #7F1D1D 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.
#7F1D1D is a dark, moderately saturated red, closest to the CSS named color brown (#A52A2A).
It is also a Tailwind CSS default: red-900. That means you can write bg-red-900 or text-red-900 directly, with no arbitrary-value brackets and no entry in your theme config.
Color values
| HEX | #7F1D1D |
| RGB | rgb(127, 29, 29) |
| HSL | hsl(0, 63%, 31%) |
| CMYK | cmyk(0%, 77%, 77%, 50%) |
| Decimal | 8330525 |
| CSS | color: #7F1D1D; |
| Android | 0xFF7F1D1D |
| Swift | UIColor(red: 0.498, green: 0.114, blue: 0.114, alpha: 1) |
Accessibility and contrast
| White text on #7F1D1D | 10.02:1 — AA pass · AA large pass · AAA pass |
| Black text on #7F1D1D | 2.10: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 #7F1D1D
Each swatch keeps the hue and saturation of #7F1D1D and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #7F1D1D
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #7F1D1D in code
/* CSS */
.element { color: #7F1D1D; background-color: #7F1D1D; }
.element { color: rgb(127 29 29); }
.element { color: hsl(0 63% 31%); }
/* Tailwind */
<div class="bg-red-900 text-white">
/* SCSS variable */
$brand: #7F1D1D;
Frequently asked questions
What color is #7F1D1D?
#7F1D1D is a dark, moderately saturated red. Its hue sits at 0° on the color wheel, with 63% saturation and 31% lightness.
What is #7F1D1D in RGB?
#7F1D1D converts to rgb(127, 29, 29) — 127 red, 29 green and 29 blue.
What is #7F1D1D in CMYK?
Approximately cmyk(0%, 77%, 77%, 50%). 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 #7F1D1D be white or black?
White gives the better contrast ratio (10.02:1 versus 2.10:1).
What is the complementary color of #7F1D1D?
#1D8181 — the hue directly opposite #7F1D1D on the color wheel.