Yellow ones attract whitefly, winged aphids and fungus gnats; blue ones attract thrips. They are mainly for monitoring: they warn you that the pest has arrived and how much of it there is.
They also catch beneficial insects, so it is not a good idea to fill an outdoor garden with them.

