#A1A1AA color
The swatch above shows #A1A1AA 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.
#A1A1AA is a light, desaturated grey, closest to the CSS named color darkgray (#A9A9A9).
It is also a Tailwind CSS default: zinc-400. That means you can write bg-zinc-400 or text-zinc-400 directly, with no arbitrary-value brackets and no entry in your theme config.
Color values
| HEX | #A1A1AA |
| RGB | rgb(161, 161, 170) |
| HSL | hsl(240, 5%, 65%) |
| CMYK | cmyk(5%, 5%, 0%, 33%) |
| Decimal | 10592682 |
| CSS | color: #A1A1AA; |
| Android | 0xFFA1A1AA |
| Swift | UIColor(red: 0.631, green: 0.631, blue: 0.667, alpha: 1) |
Accessibility and contrast
| White text on #A1A1AA | 2.56:1 — AA fail · AA large fail · AAA fail |
| Black text on #A1A1AA | 8.19:1 — AA pass · AA large pass · AAA pass |
| Recommended text color | black |
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 #A1A1AA
Each swatch keeps the hue and saturation of #A1A1AA and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #A1A1AA
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #A1A1AA in code
/* CSS */
.element { color: #A1A1AA; background-color: #A1A1AA; }
.element { color: rgb(161 161 170); }
.element { color: hsl(240 5% 65%); }
/* Tailwind */
<div class="bg-zinc-400 text-black">
/* SCSS variable */
$brand: #A1A1AA;
Frequently asked questions
What color is #A1A1AA?
#A1A1AA is a light, desaturated grey. Its hue sits at 240° on the color wheel, with 5% saturation and 65% lightness.
What is #A1A1AA in RGB?
#A1A1AA converts to rgb(161, 161, 170) — 161 red, 161 green and 170 blue.
What is #A1A1AA in CMYK?
Approximately cmyk(5%, 5%, 0%, 33%). 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 #A1A1AA be white or black?
Black gives the better contrast ratio (8.19:1 versus 2.56:1).
What is the complementary color of #A1A1AA?
#AAAAA1 — the hue directly opposite #A1A1AA on the color wheel.