All the ones I have seen are black but yes, they just thread on.
If your old one was melted then installing a new cap will not fix your problem. It will just melt like the old one. To stop the melting you have to replace the entire valve and aluminum body.