The rainbow swamp in First Landing State Park, Virginia Beach, Virginia. Photo: Shutterstock It takes the right combination of factors, chemical, biological, and astronomical, to create this effect.