#AFA7BF color
The hex color #AFA7BF is a light, grayish violet.
In the RGB color model it is made of 68.6% red, 65.5% green and 74.9% blue (175, 167, 191).
Its hue angle is 260°, with 16% saturation and 70% lightness. For print, the CMYK equivalent is 8% cyan, 13% magenta, 0% yellow and 25% black.
The closest named color is Pastel Lilac (#BDB0D0), a difference of 4.3 ΔE, a small difference.
Black text is the more readable choice on this background (contrast 9.1:1).
#AFA7BF color codes
| HEX | #AFA7BF | |
|---|---|---|
| RGB | rgb(175, 167, 191) | |
| RGB percent | rgb(68.6%, 65.5%, 74.9%) | |
| HSL | hsl(260, 16%, 70%) | |
| HSV / HSB | hsv(260, 13%, 75%) | |
| CMYK | cmyk(8%, 13%, 0%, 25%) | |
| CIE LAB | lab(69.83, 7.51, -11.24) | |
| CIE LCH | lch(69.83, 13.52, 303.76) | |
| CIE XYZ | xyz(40.9, 40.513, 54.945) | |
| Decimal | 11511743 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #AFA7BF, 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 #AFA7BF | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 9.1:1 | Pass | Pass | Pass |
| Sample text | 2.31:1 | Fail | Fail | Fail |
| #AFA7BF as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.31:1 | Fail | Fail | Fail |
| Sample text | 9.1: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 #AFA7BF looks to people with the most common types of color vision deficiency.
#a3abc0Protanopia
no red cones#a4abbeDeuteranopia
no green cones#adaaafTritanopia
no blue cones#abababAchromatopsia
no color vision
CSS examples
.background { background-color: #afa7bf; }
.text { color: #afa7bf; }
.border { border: 2px solid #afa7bf; }
.transparent { background-color: rgb(175 167 191 / 50%); }
.gradient { background: linear-gradient(to right, #afa7bf, #bba7bf); }
Similar colors
#bdb0d0Pastel Lilac#c0b0d0Vintage Bloom#b39eb5Pastel Purple#c1acc3Monet Magic#c4bad2Fog Syringa#bdbaceBlue Haze#c0b2d7Moonraker#b3b2bfNebulous December
Questions
- What color is #AFA7BF?
- #AFA7BF is a light, grayish violet, closest to the named color Pastel Lilac. It belongs to the purple family of colors.
- What is the RGB value of #AFA7BF?
- The RGB value is 175, 167, 191: 175 red, 167 green and 191 blue on a 0 to 255 scale.
- What is the complementary color of #AFA7BF?
- The complementary color is #B7BFA7, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #AFA7BF?
- Black text. Black text has a contrast ratio of 9.1:1 and white text 2.31:1. WCAG asks for at least 4.5:1 for normal text.