SCSS 颜色属性变量的烦恼

这对我有效吗?

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

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