Plotly - Legend transparency

Is it possible to make a legend background transparent? I see bgcolor as an option, but not transparency. I am not seeing any options in the documentation or searching the forums.

I have a legend that is within a plot and I would like to be able to see if there are lines going through its area. Thanks!

You can set legend.bgcolor to an RGBA value e.g. 'rgba(0,0,0,0)' will make the legend fully transparent.