Yellowing of the eyes can occur if your liver, pancreas, or gallbladder isn’t working properly. Treatment depends on the underlying cause. Yellowing of the eyes typically happens if you have jaundice.