How to Get Rid of Rainbow Vision and Its Causes

Rainbow-colored halos around lights are almost always caused by something scattering or diffracting light as it passes through the front structures of your eye, most often the cornea or lens. The fix depends entirely on what is doing the scattering: a swollen cornea after a swim, an early cataract, a spike in eye pressure, residual effects from laser eye surgery, or even a medication side effect. Some causes resolve on their own within hours, while others need prompt medical treatment to prevent permanent damage.

What Actually Creates Rainbow Halos

Your cornea and lens are supposed to focus light cleanly onto the retina. When either one develops microscopic irregularities, tiny pockets of fluid, or areas of cloudiness, incoming light gets bent at slightly different angles depending on its wavelength. Blue light bends the most, red the least, and the result is a rainbow-like ring around any bright point source, particularly noticeable at night around headlights or streetlamps. Research measuring this effect confirms that perceived halo size is significantly larger for blue light than for green or red, and the effect grows more pronounced with age as the eye’s optics become less uniform.1PubMed Central. Quantifying the Role of Longitudinal Chromatic Aberration and Age in Night Vision Disturbances

That same basic mechanism, light scattering in the front of the eye, underlies almost every cause of rainbow vision. What varies is why the scattering is happening and how urgently you need to address it.

Temporary Corneal Swelling From Swimming or Irritants

One of the most common and least worrying causes of rainbow halos is corneal edema, a mild swelling of the cornea’s outer layer. This frequently happens after swimming. A study examining 50 subjects before and after time in a chlorinated pool found that about two-thirds saw rainbows or halos around lights afterward, caused by the pool water drawing fluid into the corneal surface.2Europe PMC / JAMA. Effects of swimming pool water on the cornea The effect is temporary. Once you are out of the water and your tears restore normal salt balance across the cornea, the swelling subsides and the halos disappear, usually within a few hours.

If you are experiencing this regularly after swimming, wearing well-fitting swim goggles is the simplest prevention. For corneal edema from other causes, such as mild injury or contact lens overwear, doctors sometimes prescribe hypertonic saline drops or ointment to draw excess fluid out of the cornea. A randomized trial found that both 5% saline drops and 6% saline ointment meaningfully reduced corneal thickness from a swollen baseline, with the ointment producing a somewhat larger reduction in the first six hours.3PubMed Central. Efficacy of hypertonic saline in treatment of corneal edema: A randomized crossover trial These are available over the counter in many countries and can speed up the resolution of mild corneal swelling that is causing halos.

Industrial Chemical Exposure and Glaucopsia

Workers exposed to certain industrial amine vapors, commonly found in spray-on polyurethane foams, epoxy hardeners, and some catalysts, sometimes develop a distinctive visual disturbance called glaucopsia. Symptoms include halos around bright objects, a blue-grey tint to vision, and general fogging. These typically appear within a few hours of exposure and clear up once you are away from the chemical source.4PubMed Central. Case files of the Medical Toxicology Fellowship at the University of Massachusetts Medical Center in Worcester, Massachusetts: stumbling through a blue haze

The mechanism is the same corneal edema story: amine vapors diffuse into the corneal surface, create tiny fluid-filled microcysts in the outer cell layer, and those microcysts scatter light forward. Research has confirmed that the effect is local to the cornea rather than a systemic poisoning, and it does not cause chronic corneal damage.5PubMed Central. Amines as occupational hazards for visual disturbance Symptoms occasionally linger for two to three days in heavier exposures but resolve completely once the chemical source is removed.4PubMed Central. Case files of the Medical Toxicology Fellowship at the University of Massachusetts Medical Center in Worcester, Massachusetts: stumbling through a blue haze If you work around these chemicals and notice halo vision at the end of your shift, better ventilation and appropriate protective eyewear are the standard fixes. The condition was first described decades ago in industrial settings and remains a recognized but underappreciated occupational hazard.6PubMed Central. Glaucopsia–blue-grey vision

Cataracts and Age-Related Lens Changes

As the eye’s natural lens ages, proteins within it gradually clump and scatter light. This is the beginning of a cataract. One of the earliest symptoms people notice, sometimes years before vision drops enough to warrant surgery, is rainbow halos around lights at night. The halos happen because the cloudy patches in the lens act like tiny prisms, splitting white light into its component colors.

Not all cataracts produce the same amount of visual disturbance. A study measuring “straylight,” the amount of scattered light reaching the retina, found that cataracts affecting the back surface of the lens (posterior subcapsular cataracts) created significantly more scattering than other types. After cataract surgery, straylight dropped substantially.7Acta Ophthalmologica. Straylight value depending on the location of lens opacity and utility of straylight measurement in deciding cataract surgery In other words, the halos that cataracts cause are reliably eliminated by replacing the cloudy lens with a clear artificial one.

If you are in the early stages and surgery is not yet recommended, some practical steps help: using anti-glare coatings on glasses, avoiding driving at night when halos are worst, and keeping your glasses or contact lens prescription current. But once cataracts progress enough that halos interfere with daily life, surgery is the definitive treatment.

When Rainbow Halos Signal an Emergency

The cause of rainbow vision that needs the most urgent attention is acute angle-closure glaucoma. In this condition, the drainage angle inside the eye suddenly narrows or closes, fluid pressure builds rapidly, and the cornea swells from the pressure. The swelling produces vivid rainbow halos, usually accompanied by severe eye pain, headache, nausea, and blurred vision. This is a medical emergency: untreated, the sustained pressure can permanently damage the optic nerve within hours.

The initial treatment is medication to lower the eye pressure, followed by a procedure called laser peripheral iridotomy, which creates a tiny opening in the iris to restore fluid drainage. In some patients, cataract surgery is chosen instead, particularly when a large natural lens is contributing to the crowded anatomy. A comparative study found that both laser iridotomy and cataract surgery significantly widened the drainage angle, but cataract surgery produced a larger improvement across all measured angle parameters.8PubMed Central. Comparative study of the effects of laser peripheral iridotomy and cataract surgery on anterior chamber angle parameters in primary angle closure suspect patients The choice between the two depends on factors like the severity of the attack, whether a cataract is already present, and the individual anatomy of your eye. Gonioscopy, a technique where a special contact lens is placed on the eye to visualize the drainage angle directly, is the gold standard for diagnosing the problem and guiding treatment decisions.9Glaucoma. Gonioscopy

The key distinguishing feature of angle-closure halos is pain. If your rainbow vision comes with a throbbing eye, a rock-hard feeling when you press gently on the closed eyelid, nausea, or a sudden drop in clarity, go to an emergency room. If the halos are painless and appear only around lights at night, the situation is far less likely to be glaucoma, though you should still mention it at your next eye exam.

Halos After LASIK or Lens Implant Surgery

Seeing halos around lights is one of the most common complaints after LASIK and similar refractive surgeries, especially in the first few months. The surgery reshapes the cornea to correct your prescription, but the transition zone between the treated and untreated cornea can scatter light, particularly when the pupil dilates in dim conditions. Research on post-LASIK patients found that certain types of optical irregularities in the reshaped cornea, specifically spherical aberration and coma, correlated significantly with halo severity.10PubMed Central. Night vision disturbances after successful LASIK surgery

For most people, these halos fade over three to six months as the cornea heals and the brain adapts. Tear film instability after surgery can also contribute: when the tear layer breaks up unevenly, it creates an irregular optical surface that scatters light. A study on patients who had undergone a newer type of refractive surgery found that measures of tear film optical quality correlated with patient-reported foggy vision and glare symptoms.11PubMed Central. Evaluation of changes in objective visual quality based on tear film stability after SMILE surgery Using preservative-free artificial tears frequently during recovery can improve tear film quality and reduce these symptoms.

Halos can also occur after cataract surgery when a multifocal intraocular lens is implanted. These lenses use concentric rings to split light for near and far focus, and those rings can produce visible halos or rainbow patterns around lights. The design of the lens matters: a comparison found that extended-range-of-vision lenses produced fewer rainbow halos than traditional diffractive bifocal lenses.12PubMed Central. Rainbow halos occur less following implantation of extended range of vision one-piece intraocular lenses vs diffractive bifocal intraocular lenses If you are considering cataract surgery and night driving is important to you, discussing lens design with your surgeon beforehand is worthwhile.

Migraine Aura

Not all rainbow or prismatic visual disturbances originate in the eye itself. Migraine with aura produces visual symptoms in roughly 98 to 99 percent of aura episodes, and the range of what people see is remarkably varied. A systematic review cataloged the most common visual aura symptoms: flashes of bright light, zigzag lines, scotomas (blank spots), small bright dots, and a shimmering effect described as looking through heat waves or water.13PubMed Central. Clinical features of visual migraine aura: a systematic review Some people describe prismatic or rainbow-edged distortions, particularly along the borders of a scintillating scotoma.

The crucial difference between migraine aura and eye-based halos is the pattern. Migraine visual disturbances typically build over five to twenty minutes, affect both eyes equally (because they originate in the brain, not the eye), and then fade, often followed by a headache. Halos from corneal or lens problems are stable: they are there whenever you look at a light and do not march across your visual field. If your “rainbow vision” moves, expands, or shimmers like a kaleidoscope and then goes away within an hour, migraine aura is a likely explanation. Treatment focuses on the migraine itself through preventive medications, acute treatments, and avoiding known triggers rather than anything eye-specific.

Medications That Alter Color Perception

Several medications can affect how you perceive color and light, and a few can produce halo-like symptoms. The best-known example is digoxin, a heart medication. At toxic levels, digoxin causes a condition called xanthopsia, a yellowish tint to vision, along with other visual disturbances including halos, green-tinted vision, light sensitivity, and even visual hallucinations.14PubMed Central. Xanthopsia Due to Digoxin Toxicity as a Cause of Traffic Accidents: A Case Report These effects are dose-related and resolve when the drug level is brought back into the safe range.

Other medications occasionally implicated in visual halos or altered color perception include some anti-seizure drugs, certain antibiotics like ethambutol, and phosphodiesterase inhibitors used for erectile dysfunction, which can produce a blue tint to vision. If you are on any medication and notice new visual halos or color changes, do not stop the medication abruptly. Instead, contact your prescribing doctor, who can check drug levels or adjust the dose. The visual symptoms from medication side effects almost always resolve once the offending drug is reduced or discontinued.

How to Tell Which Cause Applies to You

Given the range of possible explanations, a few distinguishing features can help you and your doctor narrow things down:

  • Timing: Halos that appeared right after swimming, exposure to chemicals, or putting in contact lenses point to corneal swelling and usually resolve within hours.
  • Pain: Halos with severe eye pain, nausea, or a visibly red eye suggest acute angle-closure glaucoma and need emergency care.
  • Duration: Halos that have been gradually worsening over months or years, especially with increasing difficulty with night driving, suggest cataracts.
  • Movement: Visual disturbances that shimmer, expand, or migrate across your field of vision over minutes are more consistent with migraine aura.
  • New medication: Halos or color shifts that started after beginning or increasing a medication warrant a call to your prescriber.
  • Recent eye surgery: Post-surgical halos are expected and usually improve over weeks to months, but should be reported to your surgeon if they persist or worsen.

An eye exam with a slit lamp can quickly identify corneal edema, cataracts, or a narrow drainage angle. If the front of the eye looks normal, your doctor may investigate neurological causes or medication effects. Most people who search for information about rainbow halos are experiencing either a benign temporary cause or an early cataract. The small percentage who have angle-closure glaucoma almost always have accompanying pain that makes the urgency obvious.

Aging Eyes and the Normal Increase in Halos

Even without any disease, halos around lights tend to become more noticeable as you get older. The eye’s natural lens stiffens and yellows with age, and the pupil’s ability to constrict efficiently declines. Both changes increase the amount of scattered light reaching the retina. The chromatic aberration study mentioned earlier specifically found that halo size with blue light was larger in older eyes than in younger ones, an effect that exists independently of cataracts or glaucoma.1PubMed Central. Quantifying the Role of Longitudinal Chromatic Aberration and Age in Night Vision Disturbances

There is no way to reverse normal age-related optical changes short of lens replacement surgery, which is generally only warranted when cataracts are present. But you can minimize the practical impact. Keeping your windshield and glasses clean removes an extra layer of light scatter. Using anti-reflective coatings on your lenses reduces internal reflections. Avoiding looking directly at oncoming headlights while driving, and relying on lane markings instead, helps you maintain orientation without being dazzled. If the halos bother you mainly in one context, like nighttime driving, yellow-tinted night-driving lenses reduce glare for some people, though the evidence on their effectiveness is mixed and they can reduce overall visibility in very dark conditions.

Dry eyes also become more common with age, and an unstable tear film adds its own layer of light scatter on top of everything else. Regular use of lubricating eye drops, especially before activities where halos are most bothersome, can smooth out the tear film and modestly reduce halo perception. It is a simple intervention, but for mild cases it is sometimes all that is needed.