Assuming you have a Samsung device here, and the "rainbow" emanates from the bottom of the phone, where you plug the charger in?
If that is indeed that case, you're seeing the standard animation to show you that the phone is charging. Nothing more. Perfectly normal.