Get / Extract Colors from Plotly Plots (Traces)

Hey Community,

I was wondering if it is possible to extract the colors of the traces inside a plotly plot for a variable number of traces.

2 colors -> colors = ["#FFFFFF","#FFFFFF"]
3 colors -> colors = ["#FFFFFF","#FFFFFF","#FFFFFF"]

Thank you in advance!