How to Change Plotly Express bar colors using the Partial Property Update Patch()

I see the reason for your confusion. There are a lot of possibilities to change colors. Traces, lines, markers…

To help you further, please provide a MRE which I can copy & paste.

Maybe you are better off changing the default colorscheme: