Refrain from using named colors and use hexadecimal notation or functions such as rgb or hsl instead.

Noncompliant Code Example

.mybox {
  color: red; /* Noncompliant */
}

Compliant Solution

.mybox {
  color: #ff0000;
}

OR

.mybox {
  color: rgba(255, 0, 0, 1);
}

See

stylelint Related Rules