Plotly colours list

Thanks for the info, but I have yet another question.
How would I convert to rgb a color like “green” programmatically?

I understand I can go get the above mentioned link and extract it from there but is there any functionality in plotly to do so?

For example this px.colors.convert_colors_to_same_type(['red', 'blue', (0, 0.5, 1)], )
returns: ([‘red’, ‘blue’, ‘rgb(0, 128, 255)’], None)
Which I don’t think is the intended output

I"m looking for something like px.colors.to_rgb(“reed”) → ‘rgb(255, 0, 0)’

Thanks for reading

1 Like