I would recommend using data attributes for this particular task. W3 Schools has an excellent overview of what they are, how they work, and what kind of support they have.
The data-*
attribute gives us the ability to embed custom data attributes on all HTML elements.
*[data-color='red'] { color: red; }
*[data-color='blue'] { color: blue; }
<p data-color="red">I am red.</p>
<p data-color="blue">I am blue.</p>
With regards to your comment:
But How About When I Have 1000 Values?!
Your limit is really your imagination here. For example, I'll expand this out:
*[data-color='red'] { color: red; }
*[data-color='blue'] { color: blue; }
*[data-color='green'] { color: green; }
*[data-color='normal'] { color: black; }
*[data-color='gradient'] {
background: #1CB5E0;
background: -webkit-linear-gradient(to bottom, #000046, #1CB5E0);
background: linear-gradient(to bottom, #0000aa, #1CB5E0);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
*[data-color='poly'] { color: #f95; }
*[data-color='asq93'] { color: #a5c; }
<p data-color="red">I am red.</p>
<p data-color="blue">I am blue.</p>
<p data-color="green">I am green.</p>
<p data-color="normal">I am normal.</p>
<p data-color="gradient">I am gradient.</p>
<p data-color="poly">I am poly.</p>
<p data-color="asq93">I am asq93.</p>