google sheets – Conditional formatting of text with more value

I wish that a line of 20 cells changes font color according to the fact that ABC is white Z. Then 0 to 10 being blue. Then all the symbols are red.

Is there a way to do this? I discovered that I could do it, but I should make a rule for each character. I would like to have in a rule something like "a" or "b" and so on

I use google sheets.