On my webpage, the button color is determined by an admin using JavaScript on page load. Since I don't know what color will be used, I can't apply rgba(). While using opacity does change the button's color, it also affects the text, which is not ideal. Are there any other options available to me?
button {
font-size:3em;
}
button:hover {
opacity:0.2;
}
<button style="background:orange;">click me</button>