# Plotly - Legend transparency

**URL:** <https://community.plotly.com/t/plotly-legend-transparency/30308>\
**Category:** plotly.js\
**Created:** [October 21, 2019, 9:18pm UTC](https://community.plotly.com/t/plotly-legend-transparency/30308 "2019-10-21T21:18:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NickL](https://avatars.discourse-cdn.com/v4/letter/n/e0b2c6/32.png) [@NickL](https://community.plotly.com/u/NickL)\
**Post date:** [October 21, 2019, 9:18pm UTC](https://community.plotly.com/t/plotly-legend-transparency/30308/1 "2019-10-21T21:18:51Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![etienne](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/etienne/32/17_2.png) [@etienne](https://community.plotly.com/u/etienne)\
**Post date:** [October 22, 2019, 2:14pm UTC](https://community.plotly.com/t/plotly-legend-transparency/30308/2 "2019-10-22T14:14:29Z")

</div>

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