Both of these change how an eye looks. One is a medical device for a damaged eye; the other is a mass-market product. Conflating them is how people get hurt.
What a prosthetic is
A lens made for one specific eye, carrying a hand-painted or printed iris matched to the other one, and often an opaque pupil.
It is fitted after an examination, made to your measurements, and monitored afterwards. It is prescribed for aniridia, iris damage after trauma, a disfigured or scarred eye, or an eye causing intractable glare.
Its purpose is cosmesis or light control, and sometimes both.
What a cosmetic coloured lens is
A moulded lens in a standard range of shades, intended to change eye colour for appearance. In several countries it is regulated as a medical device and requires a prescription; in others it is sold from a counter with no examination at all.
The difference is the fitting, not the tint
This is the thing worth taking away.
A contact lens sits on the cornea, and whether it is safe depends on its curve and diameter against your eye, on the oxygen it transmits, and on whether the wearer has been taught to handle and clean it.
A lens bought without an examination has had none of that decided. The risks are the ordinary risks of contact lens wear — abrasion, restricted oxygen, trapped debris, infection — arriving in someone who was never shown what the early signs look like or who to ring.
The colour is not the hazard. The absence of a fitting is.
If you want to change eye colour cosmetically
That is a legitimate thing to want, and the answer is not “don’t”. It is to get coloured lenses prescribed and fitted the same way clear ones are: an examination, a fitting, teaching, a care routine and a follow-up. Many practices fit them routinely.
Where each falls short
Prosthetic: does not restore sight. Where the underlying eye sees poorly, the lens changes how it looks, not what it sees. The cost is significant and the lead time long, because each is made and often painted individually, so a lost lens is weeks away. A painted iris cannot react to light the way a real one does, so the match is usually excellent indoors and least convincing in bright sun. And an occluder solves glare by accepting that the eye no longer contributes vision, which affects depth perception.
Cosmetic coloured lenses: a standard range that will fit some eyes poorly, with none of the individual matching a damaged eye needs — they are not an alternative to a prosthetic for a disfigured eye. Bought unfitted, they carry the full risk of unsupervised lens wear.
The short version
If an eye is damaged, disfigured or causing glare, that is a prosthetic and a practitioner. If you simply want a different eye colour, that is fine — get them fitted.