Improved function for multiplying of colors