Photosensitive Epilepsy
A neurological condition in which seizures are triggered by flashing lights, rapid visual transitions, or certain visual patterns, posing serious health risks in digital environments.
In simple terms: Some people's brains are very sensitive to flashing lights. If they see something blinking really fast on a screen, it can make them feel very sick and have a seizure, which is like their brain getting overloaded. That is why websites should never have things that flash really quickly — it is not just annoying, it can actually be dangerous.
What Is Photosensitive Epilepsy?
Photosensitive epilepsy is a form of epilepsy in which seizures are triggered by visual stimuli — specifically, flashing or flickering lights, rapid alternation between high-contrast colors, and certain repetitive geometric patterns. It affects approximately 3% of people with epilepsy, which translates to roughly 1 in 4,000 people in the general population. While this may sound like a small number, it represents hundreds of thousands of people who face a genuine physical danger from poorly designed visual content. Seizures triggered by photosensitive epilepsy range from brief absence seizures (momentary loss of awareness) to tonic-clonic seizures (formerly called grand mal), which involve loss of consciousness, convulsions, and can result in physical injury. In rare cases, prolonged seizures (status epilepticus) can be life-threatening. This makes photosensitive epilepsy unique among accessibility concerns because the barrier is not inconvenience or exclusion — it is direct physical harm. The condition is most commonly diagnosed in children and adolescents (ages 7 to 19) and tends to diminish with age, though many adults remain photosensitive. It is more prevalent in individuals who already have epilepsy, but some people experience their first seizure from a photosensitive trigger without any prior history. The threshold for triggering a seizure varies between individuals, but research has established general parameters. The Harding test, developed by Professor Graham Harding, is the most widely used analysis tool for assessing whether visual content is likely to trigger seizures. Its findings form the basis for WCAG's flash thresholds.
Why It Matters
This is the only accessibility issue that can cause immediate physical harm. While most accessibility failures result in frustration, exclusion, or difficulty completing tasks, flashing content can trigger a medical emergency. This elevates photosensitive epilepsy from an accessibility concern to a health and safety issue. The history of photosensitive seizures in media underscores the risk. In 1997, an episode of the animated series Pokemon broadcast in Japan contained a rapid red-blue flashing sequence that triggered seizures in approximately 685 children, sending many to the hospital. This event, known as the "Pokemon Shock," led to new broadcasting regulations worldwide. In digital contexts, similar incidents have occurred. In 2008, hackers posted rapidly flashing images on the Epilepsy Foundation's website forum, deliberately targeting people with epilepsy. In 2016, journalist Kurt Eichenwald received a targeted animated GIF designed to trigger his epilepsy, leading to the first criminal conviction for assault via GIF in the United States. WCAG addresses this with two success criteria. Criterion 2.3.1 (Three Flashes or Below Threshold) at Level A — the most basic compliance level — requires that content not flash more than three times per second unless the flashing area is small enough and the contrast low enough to fall below the general flash threshold. Criterion 2.3.2 (Three Flashes) at Level AAA goes further, prohibiting any content that flashes more than three times per second regardless of size or contrast. Notably, WCAG 2.3.1 is one of the few Level A criteria that cannot be satisfied with a conforming alternative — the content itself must be safe. You cannot add a warning and consider the issue resolved.
How It Works
Understanding the physiology and triggers of photosensitive epilepsy helps designers and developers create safe content. ### Seizure Triggers The primary triggers for photosensitive seizures in digital content are rapid flashing (alternation between light and dark states at frequencies between 3 and 60 Hz, with the most dangerous range being 15 to 25 Hz), large areas of uniform flashing (the larger the flashing area in the visual field, the greater the risk), high-contrast flashing (particularly red flashing, which is especially provocative), and rapidly alternating high-contrast patterns (like scrolling stripes or checkerboard patterns). ### The Flash Threshold WCAG defines a "general flash" as a pair of opposing changes in luminance of 10% or more of the maximum luminance, where the darker state has less than 0.80 relative luminance. A "red flash" is any pair of opposing transitions involving a saturated red. Content is considered safe if it does not exceed three general flashes or three red flashes in any one-second period, or if the flashing area is smaller than 21,824 square pixels at standard viewing distance (roughly a 341-by-256 pixel area on a standard display). ### Content Types at Risk Video content is the most common source of seizure-triggering flashes. Strobe effects, rapid scene cuts, explosions, and lightning effects in video all pose risks. Animated GIFs can flash rapidly, particularly those with only two frames alternating. CSS animations and JavaScript-driven animations that toggle visibility, colors, or opacity rapidly can produce dangerous flash rates. Auto-playing carousels with rapid transitions between high-contrast slides can approach the threshold. ### Testing and Prevention The Photosensitive Epilepsy Analysis Tool (PEAT) is a free tool developed by the Trace Center that analyzes video content for seizure-triggering flash sequences. It applies the Harding test methodology and flags content that exceeds the threshold. For web content, manual review should check for flash rates, contrast levels in transitions, and animated pattern areas. Prevention is always preferable to testing. Design guidelines should prohibit strobe effects and rapid flashing from the start. Video production teams should be trained on flash thresholds. CSS and JavaScript animations should use smooth transitions rather than abrupt state changes. The `prefers-reduced-motion` media query should be respected to disable or reduce animations for users who have requested it.
Examples
**Dangerous design:** A landing page has a full-screen video background with a concert scene that includes strobe lighting effects, causing rapid white-to-black flashing at approximately 15 flashes per second across the entire viewport. **Safe design:** The video is reviewed with PEAT before publication. The strobe segments are edited to reduce flash rate below three per second, or the strobe scenes are replaced with slower lighting transitions. **Dangerous design:** A notification banner uses a CSS animation that rapidly toggles between a red background and a white background to draw attention, flashing more than three times per second. **Safe design:** The notification uses a gentle fade-in animation or a single brief pulse, staying well below the three-flash threshold. It draws attention through placement and color rather than flashing. **Dangerous design:** A game-like interactive on a marketing site uses a rapidly alternating black-and-white checkerboard pattern as a loading screen, creating a pattern that can trigger seizures even without traditional flashing. **Safe design:** The loading screen uses a simple spinner or progress bar with smooth, gentle motion that does not produce rapid contrast changes. **Dangerous design:** An auto-playing image carousel transitions between slides every 0.5 seconds, with alternating light and dark images creating a flash-like effect. **Safe design:** The carousel transitions every 5 seconds with a smooth crossfade, includes pause controls, and respects `prefers-reduced-motion` by displaying a static image instead.
Frequently Asked Questions
- What is the three-flashes-per-second rule?
- WCAG 2.3.1 states that web pages must not contain anything that flashes more than three times per second, unless the flashing is below the general flash threshold (small enough in area and low enough in contrast). This is the most concrete accessibility criterion and is a direct health protection measure.
- Can seizures actually be caused by websites?
- Yes. There are documented cases of seizures triggered by web content. In 2008, malicious users posted flashing animations on an epilepsy support forum, causing seizures in visitors. In 2016, a journalist with epilepsy was sent a deliberately strobing animated GIF on Twitter that triggered a seizure. Video games, television broadcasts, and web content have all caused mass seizure events.
- Does the prefers-reduced-motion CSS media query help with epilepsy?
- Partially. The `prefers-reduced-motion` query allows users to indicate they prefer minimal animation, and respecting it is good practice. However, it is not a substitute for safe content design because it requires the user to have enabled the setting beforehand, and not all flashing content is covered by motion preference settings. Content must be safe by default.
Need help making your website ADA compliant?
Our team specializes in ADA-compliant web design and remediation. Get a free accessibility audit today.
Last updated: 2026-03-15