Convert colors and mags to floats