Observations of sunspot umbrae in the HeII lambda 304 angstrom and HeI lambda 10830 angstrom lines are analyzed and compared. Spectral observations in the HeI lambda 10830 line obtained on the Large Non-Eclipse Solar Coronograph of the Sayan Solar Observatory are used, together with HeII lambda 304 data obtained with the SOHO/EIT and CORONAS-f spacecraft. The contrast in the HeII lambda 304 line was chosen as an indicator of the UV flux. The dependences of the contrast in the HeII lambda 304 line and the parameters of the HeI lambda 10830 IR triplet on the sunspot area are obtained. The sunspot areas were determined using white-light images. A division of the dependences of the parameters of the HeI lambda 10830 and HeII lambda 304 lines on the sunspot area into two branches can be distinguished for leading and trailing sunspots. Possible origins of this behavior of the line parameters are discussed.