The invention relates to an upper mask part of a respiratory mask, which is produced from elastic material having varying wall thickness levels of the walls over the course of the cross-section thereof. The upper mask part is connected to a mask body by a mask connecting region on the side facing away from the patient face. The respiratory mask has inwardly formed, thin peripheral contact lips on the side facing the patient face. The respiratory mask is fastened to the head of the patient using aids and has an air-conducting hose connection. At least one region shaped from a filling material is introduced In or on the walls of the upper mask part. The method is used to produce the upper mask part according to the invention.