A method for producing UV-absorbing silicone hydrogel contact lenses which have an UVB transmittance of 10% or less between 280 and 315 nanometers, an UVA transmittance of 30% or less between 316 and 380 nanometers, and an average violet transmittance of 70% or less between 381 nm and 440 nm, the method comprising the steps of: providing a mold for making a soft contact lens, wherein the mold has a first mold half with a first molding surface defining the anterior surface of a contact lens and a second mold half with a second molding surface defining the posterior surface of the contact lens, wherein said first and second mold halves are configured to receive each other such that a cavity is formed between said first and second molding surfaces; introducing a pre-polymerization mixture of lens-forming materials into the cavity, wherein the pre-polymerization mixture comprises (a) at least one hydrophilic vinylic monomer, (b) at least one siloxane-containing vinylic monomer, (c) at least one polysiloxane crosslinker with two or more ethylenically-unsaturated groups, (d) a first UV-absorbing vinylic monomer that absorbs ultraviolet light and high-energy violet light (HEVL) from 381 nm to 440 nm, (e) a second UV-absorbing vinylic mnomer that absorbs UV radiation and cannot absorb violet radiation of from 400 nm to 440 nm, (f) at least one visibility-tinting agent, and (g) from 0.05% to 1.5% by weight of at least one germanium-based Norrish Type I photoinitiator for initiating a free-radical polymerization under irradiation with a light source including a light in the region of 380 to 550 nm; and irradiating the pre-polymerization mixture in the mold with a light in a region of from 380 to 550 nm and crosslinking the lens-forming materials to form an UV-absorbing silicone hydrogel contact lens which blocks at least 90% of UVB light between 280 and 315 nanometers, at least 70% of UVA light between 316 and 380 nanometers, and at least 30% of high-energy violet light between 381 nm and 440 nm, wherein the formed UV-absorbing silicone hydrogel contact lens is substantially free of or preferably free of internal stress as shown by that the curvature of the cross-section of the formed UV-absorbing silicone hydrogel contact lens is close to the curvature of the forming molds when being analyzed by metrology for cross-sections. providing a mold for making a soft contact lens, wherein the mold has a first mold half with a first molding surface defining the anterior surface of a contact lens and a second mold half with a second molding surface defining the posterior surface of the contact lens, wherein said first and second mold halves are configured to receive each other such that a cavity is formed between said first and second molding surfaces; introducing a pre-polymerization mixture of lens-forming materials into the cavity, wherein the pre-polymerization mixture comprises (a) at least one hydrophilic vinylic monomer, (b) at least one siloxane-containing vinylic monomer, (c) at least one polysiloxane crosslinker with two or more ethylenically-unsaturated groups, (d) a first UV-absorbing vinylic monomer that absorbs ultraviolet light and high-energy violet light (HEVL) from 381 nm to 440 nm, (e) a second UV-absorbing vinylic mnomer that absorbs UV radiation and cannot absorb violet radiation of from 400 nm to 440 nm, (f) at least one visibility-tinting agent, and (g) from 0.05% to 1.5% by weight of at least one germanium-based Norrish Type I photoinitiator for initiating a free-radical polymerization under irradiation with a light source including a light in the region of 380 to 550 nm; and (a) at least one hydrophilic vinylic monomer, (b) at least one siloxane-containing vinylic monomer, (c) at least one polysiloxane crosslinker with two or more ethylenically-unsaturated groups, (d) a first UV-absorbing vinylic monomer that absorbs ultraviolet light and high-energy violet light (HEVL) from 381 nm to 440 nm, (e) a second UV-absorbing vinylic mnomer that absorbs UV radiation and cannot absorb violet radiation of from 400 nm to 440 nm, (f) at least one visibility-tinting agent, and (g) from 0.05% to 1.5% by weight of at least one germanium-based Norrish Type I photoinitiator for initiating a free-radical polymerization under irradiation with a light source including a light in the region of 380 to 550 nm; and irradiating the pre-polymerization mixture in the mold with a light in a region of from 380 to 550 nm and crosslinking the lens-forming materials to form an UV-absorbing silicone hydrogel contact lens which blocks at least 90% of UVB light between 280 and 315 nanometers, at least 70% of UVA light between 316 and 380 nanometers, and at least 30% of high-energy violet light between 381 nm and 440 nm, wherein the formed UV-absorbing silicone hydrogel contact lens is substantially free of or preferably free of internal stress as shown by that the curvature of the cross-section of the formed UV-absorbing silicone hydrogel contact lens is close to the curvature of the forming molds when being analyzed by metrology for cross-sections.