Its a bit of a grey area tbh and has been discussed numerous times. Several people on here have contacted the DfT and been told conflicting information about if their ok or not.
You'll probably find that 'conflicting' will depend on the way the question is asked. Here's a copy of a letter sent by the DfT which I lifted from a thread on another forum:
Dear Sir,
The situation for Gas Discharge (HID High Intensity Discharge) (commonly known as Xenon) headlamps is complex.
I attach links to the Road Vehicle Lighting Regulations 1989 which regulate the situation in the UK.
Under these Regulations Xenon headlamps are not mentioned and therefore they are not permitted according to the strict letter of the law.
However you will be well aware that new vehicles have Xenon headlamps. This is because they comply to European type approval Regulations. The UK cannot refuse to register a vehicle with a European type approval. These are to ECE Regulation 98 (for the Xenon headlamps which are tested on a rig in a laboratory) and ECE Regulation 48 (Lighting Installation on the vehicle).
For the aftermarket, a used vehicle cannot obtain type approval because it is only applicable for new vehicles. However we feel that saying "Xenon is banned in the aftermarket" would not be reasonable. Instead we should make analogies with new vehicles. It would be reasonable to require Xenon in the aftermarket to meet the same safety standards as on new vehicles. The same level of safety should apply.
Therefore a Xenon headlamp sold in the aftermarket should:
1. be type approved to ECE Regulation 98 as a component.
2. when fitted to the vehicle should enable ECE Regulation 48 to be complied with (although no government inspection will take place).
3, Comply with RVLR as far as "use" is concerned.
In practice this means:
1. The headlamp unit (outer lens, reflector, bulb) shall be type approved to ECE 98 and be "e-marked" to demonstrate this. That can only be done by the headlamp supplier - Hella, Valeo etc. who must test the headlamp in an independent laboratory.
2. Once fitted to the vehicle it must have headlamp cleaning and self-levelling (which can be for the headlamp or can be in the vehicle suspension - some expensive estate cars have "self-levelling suspension" and that is adequate). Also the dipped beam must stay on with the main beam.
3. The headlamp must be maintained in good working order, kept clean, and aligned/adjusted correctly like any other headlamp.
Hope that helps.
***
We are aware of kit available in the aftermarket where a Xenon "burner" or bulb is fitted inside a headlamp designed for use with conventional Halogen filament bulbs. The burner is fitted with a "bayonet" type fitting so it fits where the Halogen bulb should fit. This is not legal and the vendor, the person who mounts it on the vehicle and the person who drives the vehicle are all committing an offence. (Which also means that he is invalidating the insurance.)
The reason for this is that headlamps and bulbs are made to tight tolerances and the wrong type of bulb will cause an incorrect beam pattern to be emitted, which could cause dazzle and discomfort to other drivers.
I work for the DfT and when I found this quoted on a forum had a dig through our electronic filing and found the original reply. Most people that contact us have already decided they're going to do something, so ignore the advice if it doesn't agree with what they want. usually an offence isn't committed until the lights are installed and then used - selling them isn't illegal, so there's your grey area!
You're unlikely to get done, but the whole point of having the headlight washers, and particularly the self levelling, when you have HIDs from the factory is to stop the beam pattern from dazzling oncoming traffic.
As said above, the only reason they're legal is because the German industry started fitting them to cars and getting them approved over there a few years back, and because of the way legislation works you have to recognise the approval in the UK. Over time other manufacturers started to fit them as well.
Since we have bugger all traffic policing, and a check on anything much other than lights working and adjusted low enough as part of the MOT, you're unlikely to get caught out.
Here endeth the lesson......
Adrian