#A5AFB2 color
The hex color #A5AFB2 is a gray.
In the RGB color model it is made of 64.7% red, 68.6% green and 69.8% blue (165, 175, 178).
Its hue angle is 194°, with 8% saturation and 67% lightness. For print, the CMYK equivalent is 7% cyan, 2% magenta, 0% yellow and 30% black.
The closest named color is Casper (#AAB5B8), a difference of 1.7 ΔE, which is barely visible.
Black text is the more readable choice on this background (contrast 9.37:1).
#A5AFB2 color codes
| HEX | #A5AFB2 | |
|---|---|---|
| RGB | rgb(165, 175, 178) | |
| RGB percent | rgb(64.7%, 68.6%, 69.8%) | |
| HSL | hsl(194, 8%, 67%) | |
| HSV / HSB | hsv(194, 7%, 70%) | |
| CMYK | cmyk(7%, 2%, 0%, 30%) | |
| CIE LAB | lab(70.78, -2.9, -2.74) | |
| CIE LCH | lch(70.78, 3.99, 223.4) | |
| CIE XYZ | xyz(38.881, 41.873, 48.145) | |
| Decimal | 10858418 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #A5AFB2, 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 #A5AFB2 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 9.37:1 | Pass | Pass | Pass |
| Sample text | 2.24:1 | Fail | Fail | Fail |
| #A5AFB2 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.24:1 | Fail | Fail | Fail |
| Sample text | 9.37: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 #A5AFB2 looks to people with the most common types of color vision deficiency.
#adaeb2Protanopia
no red cones#abacb2Deuteranopia
no green cones#a2b0b0Tritanopia
no blue cones#adadadAchromatopsia
no color vision
CSS examples
.background { background-color: #a5afb2; }
.text { color: #a5afb2; }
.border { border: 2px solid #a5afb2; }
.transparent { background-color: rgb(165 175 178 / 50%); }
.gradient { background: linear-gradient(to right, #a5afb2, #a5a9b2); }
Similar colors
#aab5b8Casper#a1a9a9Crown of Ash#9fa5a5Silent Film#9ea4a5Statuary#b4b9b9Provence Wind#b0bcc3Stormy#a9afaaPigeon#a8a9a8Elephant in the Room
Closest common color name: Dark Gray.
Questions
- What color is #A5AFB2?
- #A5AFB2 is a gray, closest to the named color Casper. It belongs to the gray family of colors.
- What is the RGB value of #A5AFB2?
- The RGB value is 165, 175, 178: 165 red, 175 green and 178 blue on a 0 to 255 scale.
- What is the complementary color of #A5AFB2?
- The complementary color is #B2A8A5, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #A5AFB2?
- Black text. Black text has a contrast ratio of 9.37:1 and white text 2.24:1. WCAG asks for at least 4.5:1 for normal text.