A roman execution was
Jesus wore a purple cloth
Jesus was wearing a crown of thorns to make fun of him
All the similar verses have Pilate handing Jesus over to the people to be flogged and torched, then crucified
Jesus was doomed, he wore a purple cloak, was crowned with thorns, and scourged. Finally, He will be crucified.