#AFBF7F color
The hex color #AFBF7F is a light, desaturated yellow-green.
In the RGB color model it is made of 68.6% red, 74.9% green and 49.8% blue (175, 191, 127).
Its hue angle is 75°, with 33% saturation and 62% lightness. For print, the CMYK equivalent is 8% cyan, 0% magenta, 34% yellow and 25% black.
The closest named color is Nile (#AFB982), a difference of 2.5 ΔE, a small difference.
Black text is the more readable choice on this background (contrast 10.58:1).
#AFBF7F color codes
| HEX | #AFBF7F | |
|---|---|---|
| RGB | rgb(175, 191, 127) | |
| RGB percent | rgb(68.6%, 74.9%, 49.8%) | |
| HSL | hsl(75, 33%, 62%) | |
| HSV / HSB | hsv(75, 34%, 75%) | |
| CMYK | cmyk(8%, 0%, 34%, 25%) | |
| CIE LAB | lab(74.77, -16.1, 30.52) | |
| CIE LCH | lch(74.77, 34.51, 117.82) | |
| CIE XYZ | xyz(40.141, 47.908, 27.207) | |
| Decimal | 11517823 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #AFBF7F, 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 #AFBF7F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.58:1 | Pass | Pass | Pass |
| Sample text | 1.98:1 | Fail | Fail | Fail |
| #AFBF7F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.98:1 | Fail | Fail | Fail |
| Sample text | 10.58: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 #AFBF7F looks to people with the most common types of color vision deficiency.
#c7b87bProtanopia
no red cones#c5b882Deuteranopia
no green cones#b5b9afTritanopia
no blue cones#b8b8b8Achromatopsia
no color vision
CSS examples
.background { background-color: #afbf7f; }
.text { color: #afbf7f; }
.border { border: 2px solid #afbf7f; }
.transparent { background-color: rgb(175 191 127 / 50%); }
.gradient { background: linear-gradient(to right, #afbf7f, #8fbf7f); }
Similar colors
#afb982Nile#a1b670Around the Gills#bec187Kiss a Frog#b8bf71Zoodles#a5af76Estragon#9faf6cMatcha Mecha#babc72Savannah Grass#c3c67eSoda Pop
Closest common color name: Sage.
Questions
- What color is #AFBF7F?
- #AFBF7F is a light, desaturated yellow-green, closest to the named color Nile. It belongs to the green family of colors.
- What is the RGB value of #AFBF7F?
- The RGB value is 175, 191, 127: 175 red, 191 green and 127 blue on a 0 to 255 scale.
- What is the complementary color of #AFBF7F?
- The complementary color is #8F7FBF, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #AFBF7F?
- Black text. Black text has a contrast ratio of 10.58:1 and white text 1.98:1. WCAG asks for at least 4.5:1 for normal text.