moves color to variable