Hampi is about 800 km from Kerala. There are tour packages specifically designed for folks coming from Kerala to make your trip easier.