css

Use the from syntax to generate a new color from an existing color.

css
button {
    --red: #ff0000;
    /* keep hue and saturation, multiply l times 1.5 */
    --light-red: hsl(from var(--red) h s calc(l*1.5));
}