RGB calculation.