Is it possible to change color palette once the plot is generated?

I have created a plotly figure using county data which is 200mb size. It took nearly 3 min to plot.
Now I want to change color palette of figure after the plot is created. Is there a way to change color palette without creating plot again?