normalize the rgb values and save temp values