Redness in the eyes that is accompanied primarily with a yellowish discharge is a manifestation of the condition called conjunctivitis. Conjunctivitis is essentially an inflammation of the conjunctiva (membrane lining covering the white of eye).
Causes of conjunctivitis:
The main causes behind conjunctivitis are infections (including viral, bacterial), allergy and chemical irritants.