The component has a body (23) coated with an outer layer (25) on surface portions (22), where the component with the surface portion stays in contact with human tissue in implanted condition. The outer layer includes a nitride, oxinitride and an oxide based on a refractory metal, where outer layer contains silver and/or copper and is porous. An intermediate layer (24) is arranged between the outer layer and the body, where the intermediate layer consists of silver, copper and/or gold. An independent claim is also included for a method for producing an endoprosthesis component.