In producing a pure spectrum, the incident light is passed through a narrow slit placed in the focal plane of an achromatic lens because slit.

A parallel beam of light is required to be incident on the dispersing element to produce a pure spectrum. So, that incident light can be passed through a narrow slit placed in the focal plane of an achromatic lens.

1