Question: are led valve caps illegal?
Answer: You need to consult your local laws, since each state has its own laws, but the answer is almost certainly “no”, because by being on a moving wheel, they are a moving light, and there are very specific restrictions on what vehicles can have moving lights, and what colors are allowed.