# Plot and Legend color mismatch due to opacity

I have the following code:

ListContourPlot[data,Mesh->None,ContourStyle->None, PlotLegends->Automatic, BaseStyle->Directive[Opacity[0.3]]]


Due to opacity, my legend coloring is not matching my ListContourPlot. Is there any way to fix this problem? I would really appreciate any help.

Use PlotLegends -> BarLegend[Automatic, BaseStyle -> Opacity[.3]] instead of PlotLegends -> Automatic:
SeedRandom[1]