#AFB2A7 color
The hex color #AFB2A7 is a gray.
In the RGB color model it is made of 68.6% red, 69.8% green and 65.5% blue (175, 178, 167).
Its hue angle is 76°, with 7% saturation and 68% lightness. For print, the CMYK equivalent is 2% cyan, 0% magenta, 6% yellow and 30% black.
The closest named color is Magnetic (#B2B5AF), a difference of 2.5 ΔE, a small difference.
Black text is the more readable choice on this background (contrast 9.75:1).
#AFB2A7 color codes
| HEX | #AFB2A7 | |
|---|---|---|
| RGB | rgb(175, 178, 167) | |
| RGB percent | rgb(68.6%, 69.8%, 65.5%) | |
| HSL | hsl(76, 7%, 68%) | |
| HSV / HSB | hsv(76, 6%, 70%) | |
| CMYK | cmyk(2%, 0%, 6%, 30%) | |
| CIE LAB | lab(72.06, -3.08, 5.25) | |
| CIE LCH | lch(72.06, 6.09, 120.41) | |
| CIE XYZ | xyz(40.574, 43.745, 42.858) | |
| Decimal | 11514535 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #AFB2A7, 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 #AFB2A7 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 9.75:1 | Pass | Pass | Pass |
| Sample text | 2.15:1 | Fail | Fail | Fail |
| #AFB2A7 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.15:1 | Fail | Fail | Fail |
| Sample text | 9.75: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 #AFB2A7 looks to people with the most common types of color vision deficiency.
#b4b1a6Protanopia
no red cones#b3b1a7Deuteranopia
no green cones#b0b1afTritanopia
no blue cones#b1b1b1Achromatopsia
no color vision
CSS examples
.background { background-color: #afb2a7; }
.text { color: #afb2a7; }
.border { border: 2px solid #afb2a7; }
.transparent { background-color: rgb(175 178 167 / 50%); }
.gradient { background: linear-gradient(to right, #afb2a7, #aab2a7); }
Similar colors
#b2b5afMagnetic#a9afaaPigeon#bab8adZen Pebble#a6ab9bMoorland#a9b4a9Alpine Air#b2b2adSteam Engine#aaaa99Humble Hippo#aba9a0Windless Morning
Closest common color name: Ash Gray.
Questions
- What color is #AFB2A7?
- #AFB2A7 is a gray, closest to the named color Magnetic. It belongs to the gray family of colors.
- What is the RGB value of #AFB2A7?
- The RGB value is 175, 178, 167: 175 red, 178 green and 167 blue on a 0 to 255 scale.
- What is the complementary color of #AFB2A7?
- The complementary color is #AAA7B2, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #AFB2A7?
- Black text. Black text has a contrast ratio of 9.75:1 and white text 2.15:1. WCAG asks for at least 4.5:1 for normal text.