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