Color_discrete_sequence use color with opacity,for example #B22222CC

import as px
df ="year == 2007")
fig =, y="continent", x="pop", color="continent", orientation="h", hover_name="country",
             color_discrete_sequence=["#B22222CC", "green", "blue", "goldenrod", "magenta"],
             title="Explicit color sequence"

I can’t seem to use colors with transparency, how can I fix this?

Hi @Liripo, you can try to replace the decimal color code with the rgba(red, green, blue, alpha) syntax where alpha is the transparency paramter between 0 (fully transparent) and 1 (fully opaque).

Thank you very much for your help, using rgba is fine.