The value being checked must either be three or six characters long.
The valid characters are 0-9 and a-f.
So 00f, 1ab, fff, 234abc, b235af, are examples of colors and thus valid matches. I'm actually thinking it was easier to do this with PHP. In fact I will be doing this with PHP (never trust the client) but I'm trying to get this to work with JavaScript first (working on the form to begin with so when I have the form to submit data to PHP then I'll be validating form data at the server).
I'm thinking {3} || {6} might be how I check the string's range? Oh I can already tell this is going to be oddles of fun!