#AFABAB color
The hex color #AFABAB is a gray.
In the RGB color model it is made of 68.6% red, 67.1% green and 67.1% blue (175, 171, 171).
Its hue angle is 0°, with 2% saturation and 68% lightness. For print, the CMYK equivalent is 0% cyan, 2% magenta, 2% yellow and 31% black.
The closest named color is Ultimate Gray (#A9A8A9), a difference of 1.8 ΔE, which is barely visible.
Black text is the more readable choice on this background (contrast 9.24:1).
#AFABAB color codes
| HEX | #AFABAB | |
|---|---|---|
| RGB | rgb(175, 171, 171) | |
| RGB percent | rgb(68.6%, 67.1%, 67.1%) | |
| HSL | hsl(0, 2%, 68%) | |
| HSV / HSB | hsv(0, 2%, 69%) | |
| CMYK | cmyk(0%, 2%, 2%, 31%) | |
| CIE LAB | lab(70.3, 1.42, 0.51) | |
| CIE LCH | lch(70.3, 1.51, 19.54) | |
| CIE XYZ | xyz(39.592, 41.18, 44.383) | |
| Decimal | 11512747 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #AFABAB, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #AFABAB | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 9.24:1 | Pass | Pass | Pass |
| Sample text | 2.27:1 | Fail | Fail | Fail |
| #AFABAB as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.27:1 | Fail | Fail | Fail |
| Sample text | 9.24:1 | Pass | Pass | Pass |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #AFABAB looks to people with the most common types of color vision deficiency.
#acababProtanopia
no red cones#acacabDeuteranopia
no green cones#b0ababTritanopia
no blue cones#acacacAchromatopsia
no color vision
CSS examples
.background { background-color: #afabab; }
.text { color: #afabab; }
.border { border: 2px solid #afabab; }
.transparent { background-color: rgb(175 171 171 / 50%); }
.gradient { background: linear-gradient(to right, #afabab, #afadab); }
Similar colors
#a9a8a9Ultimate Gray#a9a9a9Dark Gray#acaaa7Cathedral#b5acabRose Ashes#a7a7a7Moon Landing#a6a6a6Quicksilver#b2b2b2Tangled Web#b9b4b1Gray Marble
Questions
- What color is #AFABAB?
- #AFABAB is a gray, closest to the named color Ultimate Gray. It belongs to the gray family of colors.
- What is the RGB value of #AFABAB?
- The RGB value is 175, 171, 171: 175 red, 171 green and 171 blue on a 0 to 255 scale.
- What is the complementary color of #AFABAB?
- The complementary color is #ABAFAF, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #AFABAB?
- Black text. Black text has a contrast ratio of 9.24:1 and white text 2.27:1. WCAG asks for at least 4.5:1 for normal text.