
I noticed that that the status bar at the bottom of VS Code would “sometimes” be purple and at other times it would be blue.

The reason for the difference is VS Code will display a blue status bar when you open a folder. At all other times it will display a purple status bar.
Acknowledgements
This question from Reddit r/vscode.