The question of which colors attract flies is practical, guiding pest control efforts and influencing the design of outdoor spaces. Color attraction is fundamentally linked to survival instincts, helping the insects locate food sources, mates, and sites for laying eggs. The answer is not a single hue, but rather a complex preference that depends on the specific fly species, the context of the search, and the unique way the fly’s specialized visual system processes light.
The Primary Colors That Attract Flies
For the common house fly, Musca domestica, colors reflecting light in the blue spectrum are highly attractive. Studies show house flies can be three times more attracted to blue than to yellow, a color frequently used in traditional insect traps. This preference is due to how the blue wavelength interacts with UV light and shadows, creating a highly visible target for the insect’s compound eyes.
Blue and white targets are often the most effective, suggesting that a combination of high contrast and specific wavelengths draws them in. Darker colors like black are also strong attractants, particularly outdoors where they absorb heat and provide visual contrast that mimics shaded resting or shelter areas. This attraction to dark, warm areas is a survival cue for seeking protection.
The attraction profile changes significantly across different species, highlighting the need for species-specific control. Fruit flies (Drosophila melanogaster) prefer green light during their active periods. Conversely, they show avoidance for blue light, a stark contrast to the house fly’s preference. This green preference likely mimics the leaves and ripening fruit where they feed and lay eggs. Specific tropical species like the tsetse fly are strongly attracted to blue and black fabrics.
Understanding Fly Vision and UV Sensitivity
The fly’s visual world is fundamentally different from a human’s due to the structure of its compound eyes, which are composed of hundreds of individual units called ommatidia. These units house photoreceptor cells that absorb light at distinct wavelengths. A fly’s photoreceptors are tuned to three main spectral regions: ultraviolet (UV), blue, and green.
The house fly’s visual system has maximum sensitivity in the mid-UV range, specifically between 340 and 350 nanometers. This UV sensitivity allows them to see light invisible to the human eye, which is a significant factor in their attraction to certain colors. Photoreceptor cells designated R1-R6 are broadly responsive to both UV and blue-green light, giving the fly a broad-spectrum view of its environment.
The UV and blue sensitivity is crucial for innate behaviors, including navigation and finding mates. Many flowers and natural objects reflect UV light, providing distinct visual cues that guide the flies’ search for food. This high sensitivity to short wavelengths is the underlying mechanism that makes certain colors intensely attractive to the insect.
Colors That Repel or Are Invisible to Flies
While certain colors attract flies, others are poorly visible or register as unappealing, non-food targets. Colors that do not provide high contrast or mimic a natural resource are avoided. Some studies indicate that certain shades of green or specific dark blues may deter insects because they do not strongly register on the UV spectrum.
The color yellow, despite its common use in older traps, can act as a repellent for house flies. This suggests that the wavelength reflected by yellow pigments does not signal a suitable landing site or food source for that species. Patterns of red stripes have demonstrated a repellent effect on house flies, even when an olfactory attractant is present.
Avoidance of a color is often a passive behavior; the color simply fails to provide the necessary visual signal to trigger an approach. Light, reflective colors such as white are less attractive for resting because they lack the deep shadow contrast flies seek for shelter. The insect merely ignores the color in favor of a more visually stimulating target.
Using Color Science in Fly Control Strategies
Knowledge of fly color vision is directly applied to the engineering of modern pest control devices. Many highly effective commercial fly traps, including baiting devices, utilize the strong attraction of the blue spectrum for house flies. These devices often incorporate blue materials because the wavelength is highly visible to the fly’s photoreceptors, luring them to the insecticide or capture surface.
Trap designers frequently enhance the attraction by using high-contrast patterns, such as black stripes on a blue background. This combination capitalizes on the fly’s preference for the blue wavelength while simultaneously mimicking dark crevices or edges that house flies naturally seek out for resting. For other pest species, the traditional yellow sticky trap remains effective because many crop-damaging insects and gnats are highly attracted to the yellow-green spectrum, which simulates host plants or flowers.
This color science extends to practical choices in human environments, such as selecting clothing or exterior paint colors. When working in areas with high house fly populations, choosing lighter colors that do not absorb heat or provide the dark contrast flies seek for resting can reduce attraction. For buildings in infested areas, avoiding highly reflective, bright colors on exterior surfaces can help minimize the attraction of various flying insects, especially those drawn to the UV light reflected by these hues. The strategic use of color shifts the balance, using the fly’s own visual biology against it to improve pest management.

