This will not work, because you are mixing two different methods.
This is a css variable: var(--red-color), it is defined here:
:root {
--red-color: red;
}
However these variables may not be supported by all the browsers in use. This is why you are asked to give a more general way of defining the background color: so that older browsers also display your site correctly. How to do this is explained in the challenge:
[I]t’s as easy as providing another more widely supported value immediately before your declaration. That way an older browser will have something to fall back on, while a newer browser will just interpret whatever declaration comes later in the cascade.