Police Scotland said members of the public were attacked "because of the colour of their skin" on Tuesday evening.