my driving lights are 3K yellow HIDs, and my high beams are 12K HIDs.
I have never been pulled over, and I have actually been complimented by a few police officers on my car.
The main reason you got pulled over was because you probably are running HID's in a housing that is not made for them, thus you have high beams on every time you have your headlights on.
Also Yellow is a more visible light, yes it does not project as far, but with the correct projectors it can. I can truthfully say I can see further and better with my 3K driving lights than I could with my OEM ones.