It's legal as long as you still have usage of your high beams.
For example, if your car has one bulb for both the low & high beams, it would be illegal cause the HID bulb only has one filament.
If you have two separate bulbs (one for low and one for high) then it'll be ok.