No easy way to get contaminants out of water. ( A reverse osmosis unit will do it, but you won't be collecting rain water if you have a R/O unit ....>
I would just dump the water, clean out the container & wait for the next rain fall. I wouldn't chance unknown dyes in my tanks.