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