Updated color calculations.