Simplified color calculations
Minor typo