Engineering has had yellow since the TWOK uniforms came out, and command was white so a switch actually took place after TOS ended.
Excelsior:
I was going to mention that there've been two big switches in division colors since TOS. First, you had the TOS movies switch, which wasn't as apparent in TMP, but the shoulder tabs and circle around the Starfleet delta represented division colors, and they were the same colors as in TWOK to TUC.
Those colors, were, roughly: white (command); blue-gray (sciences); gold (operations/engineering); green (medical); and red (trainee/cadet). There were apparently other colors, too, but those are the ones most prominently displayed onscreen.