dry up css color calculation