I'm still sad that the native CSS color functions do not work like in preprocessors in certain aspects, but with custom functions, we will be finally free
@function --rgba(--c <color>, --a: 1) {
result: rgb(from var(--c) r g b / var(--a));
}