A hex color has the wrong number of digits or a letter that is not a digit

tx0/css:invalid-hex-colorrecommendedwarningreliability/api-misusedepth fastbug

What it finds

A hex color has the wrong number of digits or a letter that is not a digit

Example from the rule's tests
.a { color: #ff00f; }tx0 reports: #ff00f is not a hex color.b { color: #ggg; }tx0 reports: #ggg is not a hex color.c { color: #fff; background: #11223344; }
Highlighted lines are the ones tx0 reports, with its message under each; the other lines are left alone.

Turn it on, off or suppress it

The rule runs from the recommended tier up. To turn it on in a lower tier, give it a level in tx0.toml:

tx0.toml
[rules]
"tx0/css:invalid-hex-color" = "warning"

To keep one finding, suppress it with a reason: tx0 suppress ID --reason "..." writes the comment for it.

tx0 explain tx0/css:invalid-hex-color shows the same in the terminal. Found a false positive? Report it.