You're supposed to be able to hold it there 5 minutes without discomfort, hid lights will burn your hand and your plants if you hold them that close for too long.As close as you can get it.
Put the back of your hand facing the bulb over the plants and when it gets uncomfortable then it's too close.
With the right fixture and ventilation you can get them this close: