What Colors Do Flies Hate and Why?

No single color repels every fly, because “fly” covers many insects that each use color for a different job. The color one kind avoids can be the very color another is drawn to. For the common house fly, the best-supported color to steer clear of is yellow, not the blue of folk tradition.1PubMed. Behavioral and physiological response of Musca domestica to colored visual targets Biting flies like horseflies care more about pattern than any one color, which is why stripes keep turning up in the science.

Yellow Is the Color House Flies Avoid

Given a choice of lit colors, house flies flew toward white and blue light but away from yellow.2PubMed. Behavioral and physiological response of Musca domestica to colored visual targets They traveled toward blue about three times as readily as toward yellow.3archive.news.ufl.edu. Color is key in controlling flies, UF researchers find Their eyes respond strongly to yellow, so the avoidance is a behavior choice, not an inability to see it. Yellow is the only color tested that house flies saw well yet still steered clear of.4PubMed. Behavioral and physiological response of Musca domestica to colored visual targets

Pattern can boost or weaken the effect. Adding black lines made a blue target even more attractive to house flies, while yellow lines made a target less attractive.5PubMed. Behavioral and physiological response of Musca domestica to colored visual targets Results can also shift with setting and light: in one older study, blue was the least visited color indoors and brown the least visited outdoors.6Entomologia Experimentalis et Applicata. CONTRARY RESPONSES OF MUSCA DOMESTICA CONCERNING THEIR SELECTION OF DIFFERENT SHADES AND HUES Treat yellow as a helpful nudge, not a guarantee.

In practice, yellow outdoor bulbs and yellow tablecloths or covers are easy, low-cost ways to test the effect. Keep bright blue or white surfaces away from outdoor food prep areas, since those attract house flies. Color won’t overcome smell, though, so removing what draws flies matters more.

The real fly supply comes from rotting food, manure and wet garbage, where house flies lay their eggs. Tight-lidded bins, prompt pet-waste cleanup and rinsed trash cans cut the number of flies that arrive in the first place.

Blue fly traps make sense despite all this. Since house flies seek blue, traps use it to lure them in, which is the opposite of repelling them: you attract flies to a place you choose. A blue trap placed away from seating pulls flies away from people.

Does a Blue Porch Ceiling Keep Flies Away

The haint blue tradition likely has a chemical explanation, not a color one. Early blue ceilings were often painted with milk paints that commonly contained lye, a known insect repellent.7Gurneys. Should I Paint My Porch Ceiling Blue? | Gurney’s Seed & Nursery Co. Milk paint fades, so people repainted every few years and refreshed the lye.8Gurneys. Should I Paint My Porch Ceiling Blue? | Gurney’s Seed & Nursery Co. Another popular idea is that insects mistake the blue for sky and won’t nest there.9Gurneys. Should I Paint My Porch Ceiling Blue? | Gurney’s Seed & Nursery Co. But house flies are actually attracted to blue, as covered above. Modern latex blue paint without lye is unlikely to deter them.

For a pleasanter porch, paint the ceiling blue if you like the look. Fans move air and make it hard for small flyers to land, and yellow bulbs draw fewer insects than bright white ones at night. Screens remain the most reliable barrier.

Why Stripes Beat Any Single Color for Biting Flies

Horseflies and deerflies are drawn to horizontally polarized light, the flat glare that bounces off water.10PubMed. Ventral polarization vision in tabanids: horseflies and deerflies (Diptera: Tabanidae) are attracted to horizontally polarized light Female horseflies seeking blood also read a shiny black object as a host animal.11PubMed Central. Horsefly reactions to black surfaces: attractiveness to male and female tabanids versus surface tilt angle and temperature Dark, glossy coats and objects are therefore prime targets. Shine matters along with darkness, since a matte dark surface gives off less of that glare.

Stripes break up the signal. Biting flies strongly preferred plain impala skin over zebra skin, and when they did land on zebra skin, about 3 in 4 landings were on black stripes.12PubMed Central. Zebras of all stripes repel biting flies at close range Striped targets stayed less attractive even when they gave off the carbon dioxide and ammonia that lure horseflies.13PubMed. Stripes disrupt odour attractiveness to biting horseflies: battle between ammonia, COâ‚‚, and colour pattern for dominance in the sensory systems of host-seeking tabanids Checked patterns put flies off much like stripes did, so the effect isn’t only about parallel lines.14PubMed Central. Zebra stripes, tabanid biting flies and the aperture effect

The exact reason stripes work is still debated. Flies that do approach striped surfaces tend to land less smoothly, so fewer end up feeding.

It works on farm animals too. Painting zebra-like stripes on cows cut biting fly landings by about half, and the striped cows showed less tail-flicking and other fly-defense behavior.15PubMed Central. Cows painted with zebra-like striping can avoid biting fly attack Striped body paint protected people from horseflies as well.16PubMed Central. Striped bodypainting protects against horseflies That’s why horse owners now buy zebra-striped fly rugs for dark horses.17PubMed Central. Striped bodypainting protects against horseflies

For horses or cattle, a striped fly sheet is a practical option in horsefly season. Stripes reduce landings rather than stopping them, so pair them with other control. They do offer a pesticide-free option where fly resistance to sprays is a problem. Solid white or black covers lack the benefit of a busy pattern.

People near water and fields can use the same idea. Horseflies cluster near ponds and marshes where they lay eggs, and dark solid clothing at a lake can make you an easier target. Striped or patterned light clothing is a reasonable choice there.

Colors Mosquitoes Ignore

After a mosquito smells exhaled carbon dioxide, it flies toward red, orange, black and cyan, but it ignores green, purple, blue and white.18UW News. Mosquitoes are seeing red: Why new findings about their vision could help you hide from these disease vectors Human skin of every tone gives off red-orange light, which those mosquitoes home in on.19PubMed Central. The olfactory gating of visual preferences to human skin and visible spectra in mosquitoes When red-orange light was filtered out, or a person wore a green glove, mosquitoes stopped flying toward it.20UW News. Mosquitoes are seeing red: Why new findings about their vision could help you hide from these disease vectors

That need for breath first means colors alone don’t draw mosquitoes from afar. A person in a red shirt may draw mosquitoes, while a red object left alone attracts little. Your breath works like an alert that makes mosquitoes start scanning for skin-colored targets.

Light clothes help outdoors. In outdoor tests in West Africa, light-colored clothing drew the fewest host-seeking mosquitoes, though the effect varied by mosquito species and light conditions.21PubMed. Effect of textile colour on vector mosquito host selection: a simulated field study in Mali, West Africa Wear white or light clothing outdoors, especially where mosquitoes spread disease.

For a bite-resistant outfit, pick white, light green or light blue long sleeves and pants. Avoid black, red and orange, which mosquitoes seek after smelling you. Covering skin also hides its red-orange signal. Color works alongside repellent, not instead of it.

Light clothing isn’t enough on its own. Mosquitoes also follow body heat, sweat odor and carbon dioxide, so even a person in white is still findable. Light but tight fabric can be bitten through, so loose, thick or tightly woven cloth works better. Exposed hands, neck and face stay visible and smellable, which is why repellent on bare skin still matters.

Why Flies React to Color at All

A fly’s eye sees a different range from ours. Each unit of a fly’s eye, which is made of many tiny lenses, holds eight light-sensing cells.22PubMed Central. Visual circuits in flies: Beginning to see the whole picture Six handle dim light and motion, while two handle color, with sensors for ultraviolet, blue and green.23PubMed Central. Visual circuits in flies: Beginning to see the whole picture Fruit flies are very sensitive to ultraviolet through green but see red poorly.24PubMed Central. Color preference of the spotted wing Drosophila, Drosophila suzukii

Flies also see ultraviolet, which people cannot, so a surface that looks plain white to you may look patterned or bright to a fly. A red object may look dark to them instead of red.

Color helps them tell targets from foliage. Biting flies may be drawn to blue because comparing blue and green is an efficient way to spot things that aren’t leaves.25PubMed Central. Why are biting flies attracted to blue objects? Flower-visiting insects show the same blue pull for the same reason.26PubMed Central. Why are biting flies attracted to blue objects? Direct proof of true color vision exists in only a few fly species, and their reactions vary widely.27PubMed. Visual ecology of flies with particular reference to colour vision and colour preferences

Common fruit flies avoid blue light all day, and prefer green in early morning and late afternoon.28PubMed. Daytime colour preference in Drosophila depends on the circadian clock and TRP channels Blue lighting in a kitchen may help a little, though removing ripe fruit matters more.

Traps, Lights and Smells That Work With Color

LED lights that give off no ultraviolet draw far fewer insects, so switching porch bulbs to LEDs can reduce fly and bug crowds.29Fifth International Conference on Biomedicine and Bioinformatics Engineering (ICBBE 2025). Research on the visual sensitivity and phototaxis of houseflies based on LED light Many night insects are drawn to ultraviolet, which ordinary bright white bulbs often emit and LEDs largely do not. Fewer insects around the light also means fewer reaching nearby doors and seating. The porch won’t be bug-free, since smell and warmth still draw insects.

Traps using both color and smell caught more fruit-fly pests than either alone.30PubMed Central. Complementary use of visual and olfactory cues to assess capture of Bactrocera dorsalis (Hendel): Implementation and field verification via an IoT-based automatic monitoring system Odors can even change which color a fly picks: spotted wing fruit flies chose black when blueberry scent was present.31PubMed. Olfactory Cues From Host- and Non-host Plant Odor Influence the Behavioral Responses of Adult Drosophila suzukii (Diptera: Drosophilidae) to Visual Cues A trap’s best color depends on the lure inside, not just the flies you want to catch.

Trap color should match the pest. Tsetse flies are most drawn to bright blue and black targets.32PubMed Central. Optimizing the Colour and Fabric of Targets for the Control of the Tsetse Fly Glossina fuscipes fuscipes Blue sticky cards caught more thrips and hoverflies than yellow ones.33Environmental Entomology. Trap Evaluations for Thrips (Thysanoptera: Thripidae) and Hoverflies (Diptera: Syrphidae) Check which insect a colored trap is designed for before buying.

To set up a trap at home, use blue for house flies and place it away from where people sit. Add bait to boost the catch, such as rotting food or sugar water for house flies, or fruit or vinegar for fruit flies. Keep traps out of direct reach of pets and food, and replace sticky cards when they’re covered.