JSFiddle - React, Tailwind, and code Playground

HTML

<a id='form:tabView:tabExceptions' >No test clue</a>

CSS

[id=form\:tabView\:tabExceptions]{
    color: grey;
   
}
[id$=tabExceptions]{
    background-color:blue
}