#AAAAAA color
#AAAAAA is a gray colour. It is rgb(170, 170, 170) in RGB and hsl(0, 0%, 67%) in HSL. Text in black reads better on it: the contrast is 9.04:1 against black and 2.32:1 against white.
How to work it out
- 1
A hex code is three pairs of base-16 digits: red, green and blue, from 00 (none) to FF (full).
\mathrm{#AAAAAA}:\quad R=\mathrm{AA}_{16}=170,\ G=\mathrm{AA}_{16}=170,\ B=\mathrm{AA}_{16}=170 - 2
HSL describes the same colour as a hue angle on the colour wheel (0° red, 120° green, 240° blue), a saturation and a lightness.
- 3
The complementary colour sits opposite on the wheel: add 180° to the hue.
0^\circ + 180^\circ = 180^\circ ;\Rightarrow; \mathrm{#AAAAAA} - 4
Contrast is the ratio of the lighter to the darker relative luminance, each plus 0.05. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text (AA).
LaTeX source of the formulas on this page
\[ \mathrm{#AAAAAA} = \mathrm{rgb}(170, 170, 170) \]
\[ \mathrm{#AAAAAA}:\quad R=\mathrm{AA}_{16}=170,\ G=\mathrm{AA}_{16}=170,\ B=\mathrm{AA}_{16}=170 \]
\[ H=0^\circ,\quad S=0\%,\quad L=67\% \]
\[ 0^\circ + 180^\circ = 180^\circ ;\Rightarrow; \mathrm{#AAAAAA} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 2.32:1\ \text{(on white)} \]#AAAAAA in every colour format
| Format | Value |
|---|---|
| HEX | #AAAAAA |
| RGB | rgb(170, 170, 170) |
| RGB (percent) | rgb(66.7%, 66.7%, 66.7%) |
| HSL | hsl(0, 0%, 67%) |
| HSV / HSB | hsv(0, 0%, 67%) |
| CMYK | cmyk(0%, 0%, 0%, 33%) |
| Decimal | 11184810 |
| Description | gray |
Text contrast (WCAG)
| Background of this colour with… | Contrast | AA normal (4.5) | AA large (3) | AAA normal (7) | AAA large (4.5) |
|---|---|---|---|---|---|
| White text | 2.32:1 | fail | fail | fail | fail |
| Black text | 9.04:1 | pass | pass | pass | pass |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #1C1C1C #393939 #555555 #717171 #8E8E8E |
| This colour | #AAAAAA |
| Tints (mixed with white) | #B8B8B8 #C6C6C6 #D5D5D5 #E3E3E3 #F1F1F1 |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #AAAAAA | 0 |
| Deuteranopia | #AAAAAA | 0 |
| Tritanopia | #AAAAAA | 0 |
| Grayscale | #AAAAAA | - |
Nearest named colours
| Name | Hex |
|---|---|
| Dark gray | #A9A9A9 |
| Silver | #C0C0C0 |
| Light gray | #D3D3D3 |
| Gray | #808080 |
Questions
What is the RGB value of #AAAAAA?
rgb(170, 170, 170): red 170, green 170, blue 170.
What is the HSL value of #AAAAAA?
hsl(0, 0%, 67%): a hue of 0°, 0% saturation and 67% lightness.
What is the complementary colour of #AAAAAA?
#AAAAAA, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #555555.
Should I use white or black text on #AAAAAA?
Black. White gives 2.32:1 and black 9.04:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #AAAAAA?
cmyk(0%, 0%, 0%, 33%). This is a simple formula conversion; printed colours depend on the printer profile.
What is the closest named colour to #AAAAAA?
Dark gray (#A9A9A9).