This can be done using a single selector using a combination of :not and :nth-child .
ul > li:not(:nth-child(6n+1)):not(:nth-child(6n+2)):not(:nth-child(6n+3)) { color:blue; }
jsFiddle here
Using this selector in itself is pretty useless though, given that you can't style other elements.
ul > li:not(:nth-child(6n+4)):not(:nth-child(6n+5)):not(:nth-child(6n+6)) { color:red; }
Using a combination of both will allow you to style everything, see a demonstration .
source share