The glass version of these lenses achieves their photochromic properties through the embedding of microcrystalline silver halides (usually silver chloride) in a glass substrate. Plastic photochromic lenses use organic photochromic molecules (for example oxazines and naphthopyrans) to achieve the reversible darkening effect. These lenses darken when exposed to ultraviolet light of the intensity present in sunlight, but not in artificial light. In the presence of UV-A light (wavelengths of 320–400 nm), electrons from the glass combine with the colourless silver cations to form elemental silver. Because elemental silver is visible, the lenses appear darker.
Back in the shade, this reaction is reversed. The silver returns to its original ionic state, and the lenses become clear.
With the photochromic material dispersed in the glass substrate, the degree of darkening depends on the thickness of glass, which poses problems with variable-thickness lenses in prescription glasses. With plastic lenses, the material is typically embedded into the surface layer of the plastic in a uniform thickness of up to 150 µm.