Color_discrete_sequence use color with opacity,for example #B22222CC

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

fig.show()

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.