There is no definitive answer to this question since it depends on what you want to do while in Hvar. If you're looking to relax on the beach and take in the stunning views, then a few days should be plenty. However, if you plan on doing some exploring and hiking, then a week or more would be better.