Question: are gnats attracted to yellow?
Answer: Yellow is attractive to many insects commonly found in gardens or greenhouses, including winged adult white flies, aphids (see Yellow pan traps, below), leaf miner flies, fungus gnats and thrips (which are also reportedly attracted to blue). ... Yellow pan traps (with salt water).