Maux de tête de variable de propriété de couleur SCSS

Cela fonctionne pour moi ?

$header_color: rgb(0,0,0);
$transparency: 0.5;

.d-header {
    background: rgba($header_color, $transparency);
}