Rule Machine can set colors, I would think it can do it.
Ask in the Peer Assistance topic, they’ll know.
And here’s the main rule machine code topic where you can get the code if you decide it will work.