An optoelectronic component comprises a housing that has a top face. An anchoring structure designed as a positive relief is arranged on the top face. A covering element is arranged over the top face and is anchored to the anchoring structure. The covering element entirely covers the top face of the housing.