What is hex #A8A8A8 color?
In professional design frameworks, this hue is considered a balanced and versatile hue. It is ideal for creating smooth color harmony, digital artwork, or minimalist web components.
From a technical standpoint, this color is composed of 66% red, 66% green and 66% blue, resulting in rgb(168, 168, 168) and hsl(0, 0%, 66%).
For print media and manufacturing layout, the CMYK equivalent is (0%, 0%, 0%, 34%).
In the HSV/HSB scale, #A8A8A8 features a hue of 0°, 0% saturation, and 66% brightness.
Hex #A8A8A8 Color Codes & Conversions
| Closest Named Color | Dark Medium Gray (#A9A9A9) |
| Hex Code | #A8A8A8 |
| Hex8 (RGBA Hex) | #A8A8A8FF |
| RGB (CSS) | rgb(168, 168, 168) |
| RGBA (CSS) | rgba(168, 168, 168, 1) |
| HSL (CSS) | hsl(0, 0%, 66%) |
| HSLA (CSS) | hsla(0, 0%, 66%, 1) |
| HSV / HSB | (0°, 0%, 66%) |
| CMYK Values | (0%, 0%, 0%, 34%) |
| OKLCH (Modern CSS) | oklch(73.2% 0.000 0.0) |
| CIE-LAB (D65) | 68.87, -0.00, 0.00 |
| CIE XYZ | 37.22, 39.16, 42.64 |
| Decimal / Binary |
11053224
10101000 10101000 10101000 |
Closest Standards & Equivalents
| Closest Web Safe | #999999 |
| Inverse Color | #575757 |
| Complementary Color | #A8A8A8 |
| Closest Pantone® | Pantone Cool Gray 6 C |
| Closest RAL | RAL 7038 [Agate grey] |
#A8A8A8 Grayscale Equivalents
| Average | #A8A8A8 |
| Lightness (Desaturation) | #A8A8A8 |
| Weighted (BT601) | #A8A8A8 |
| Luma (BT709) | #A8A8A8 |
WCAG 2.1 Color Contrast & Accessibility
Check how #A8A8A8 complies with web accessibility standards (WCAG AA & AAA) for typography. Need to test against another custom color? Use our interactive contrast checker.
White Text on #A8A8A8
Sample preview of readable typography on top of #A8A8A8.
Black Text on #A8A8A8
Sample preview of readable typography on top of #A8A8A8.
HTML / CSS Live Previews & Snippets for #A8A8A8
Preview #A8A8A8 in real UI elements and copy ready-to-use CSS rules.
background-color: #A8A8A8;
color: #A8A8A8;
border: 2px solid #A8A8A8;
:root {
--color-primary: #A8A8A8;
--color-primary-rgb: 168, 168, 168;
--color-complementary: #A8A8A8;
}
.btn-accent {
background-color: #A8A8A8;
color: #000000;
}
Hex #A8A8A8 Color Palettes
Complementary Palette
The complementary color of #A8A8A8 is #A8A8A8. Opposite on the color wheel, placing these two colors next to each other creates the strongest visual contrast.
Analogous Palette
The analogous color scheme of #A8A8A8 pairs with #A8A8A8 and #A8A8A8, positioned 30° apart on the color wheel for smooth, cohesive visual harmony.
Split-Complementary Palette
The split-complementary scheme of #A8A8A8 pairs with #A8A8A8 and #A8A8A8, delivering strong contrast while remaining easier to balance than a direct complement.
Triadic Palette
The triadic color scheme of #A8A8A8 uses #A8A8A8 and #A8A8A8, spaced 120° apart for balanced, high-energy contrast.
Tetradic Palette
The tetradic color scheme of #A8A8A8 combines #A8A8A8, #A8A8A8 and #A8A8A8 around the color wheel for rich multi-accent UI systems.
Square Palette
The square color scheme of #A8A8A8 pairs with #A8A8A8, #A8A8A8 and #A8A8A8 spaced evenly at 90° intervals.
Tints, Tones & Shades of Hex #A8A8A8
Tints
Tints are created by mixing #A8A8A8 with white, producing lighter variations.
Tones
Tones are created by mixing #A8A8A8 with gray, softening saturation.
Shades
Shades result from mixing #A8A8A8 with black, creating deeper variations.
Hex #A8A8A8 in Programming & CSS Frameworks
Copy the exact syntax for #A8A8A8 in CSS, Tailwind, Java, Python, .NET, Swift, or Kotlin:
| HTML / CSS | #A8A8A8 |
| Tailwind CSS | bg-[#A8A8A8] text-[#A8A8A8] |
| Java (AWT) | new Color(168,168,168); |
| Python | Color("#A8A8A8") |
| .NET (C#) | Color.FromArgb(255, 168,168,168); |
| Swift / iOS | UIColor(red: 0.66, green: 0.66, blue: 0.66, alpha: 1) |
| Kotlin / Android | Color.rgb(168, 168, 168) |