There is no certain dress code that has been implemented as of now. But since, it is a religious place and requires visiting prominent temples, it is advised that you wear decent clothes. A normal shirt and pants or kurta pajama would be ideal to wear in Hampi.