Calculate primary and hover colors