What are the risk factors for eye cancer?

Risk Factors for Primary Intraocular Melanoma
Coloration: People with blue eyes are somewhat more likely to develop melanoma of the eye than are people with brown eyes.Inherited melanoma: A condition called dysplastic nevus syndrome, which leads to abnormal moles of the skin and increased risk of skin melanoma, may also increase the risk for developing melanoma of the eye.Sun exposure: Although excessive exposure to sunlight has been proposed as a possible risk factor for melanoma of the eye, it has never been proven.Welding: There is also some evidence, which is not conclusive, that long–term exposure to welding equipment is another risk factor for ocular melanoma.

Risk factors for Primary Intraocular Lymphoma
The only known risk factor for primary lymphoma of the eye is having a weakened immune system. The acquired immunodeficiency syndrome (AIDS) is a common cause of immune system problems.