Fixed RGB mathematical formula error