Are you thinking of studying in London? Every major city is incredibly diverse, so people get along with each other. If you don't wear a scarf you personally would be at even less risk of racism. The areas with Mosques and Halal restaurants and butchers are concentrated with Muslims.
I feel if anyone does have any hate/issues with Muslims, they're very unlikely to say it to your face. Most racists stick together. If you have a strong accent or cannot speak English fluently, you may experience higher levels of abuse.
Passive racism is probably your biggest threat, but you've just got to learn to roll with the punches.
All in all, the UK may have slightly more unwelcoming people than perhaps other MEDC's but it also has a large population of British-born Muslims that you can find in every city, they can make you feel safer if you do find it challenging to live there.