How do I setup the Alpha value for the button style background color?

Hi!
I am getting this error for a code i setup for the buttons on my site:
Wix code SDK Warning: The value of backgroundColor property of StylableButton expects an rgbColor value, but was set to an rgbaColor value. The color value has been set, but the alpha (opacity) information has been ignored.

These are two approaches I tried. Both are not working.

button.style.backgroundColor = rgba( 28,170,237 ,${opacity});

button.style.backgroundColor = “#FFFFFF00”;

This was my reference: https://www.wix.com/velo/reference/$w/style/backgroundcolor

Thank you!

As stated in the style documentation“Not all styles can be used on all button designs.”

Hi @yisrael-wix ! Yes I saw that. The thing is background color is working but it’s disregarding the opacity value. Any ideas why?

Because some elements accept rgba() and some accept rgb().