Better color calculation.