Photosensitive Epilepsy & Seizure Safety: WCAG Three Flashes Threshold Guide

Rapidly flashing banners, video strobes, and animated ads can induce epileptic seizures. Learn how to audit and eliminate photosensitive hazards adhering to WCAG 2.3.1.

Web accessibility is often framed as a matter of convenience and equal opportunity, but for individuals with photosensitive epilepsy, it is a matter of immediate physical safety. Content that flashes more than three times per second can trigger real medical seizures within seconds of page load.

The Medical Danger of Flashing Web Content

Approximately 3% of people with epilepsy have photosensitive epilepsy, where flashing lights, high-contrast visual patterns, or rapid color oscillations provoke epileptic seizures. Children and young adults are particularly vulnerable.

The WCAG 2.3.1 & 2.3.2 Three Flashes Rules Explained

Criterion Level Standard Requirement
WCAG 2.3.1: Three Flashes or Below Threshold Level A (Mandatory) Web pages do not contain anything that flashes more than 3 times in any 1-second period, or the flash is below the general flash and red flash thresholds.
WCAG 2.3.2: Three Flashes Level AAA Zero content flashes more than 3 times per second under any circumstance, regardless of area size.

Why Saturated Red Flashes are Exceptionally Hazardous

Saturated red transitions provoke stronger neural reactions in the visual cortex than other color spectra. A transition to or from a saturated red color (`rgb(255, 0, 0)`) has a much lower allowable area threshold before triggering seizure risk.

Auditing Web Animations with PEAT and Automated Scanners

Developers should test all promotional videos, CSS keyframe animations, and canvas graphics using the Photosensitive Epilepsy Analysis Tool (PEAT) developed by the Trace Center, which evaluates frame-by-frame luminance and color variations.

Engineering Guardrails to Prevent Flashing Code

  • Limit CSS blink animations to < 2Hz frequency (one cycle every 500ms or longer).
  • Disable auto-playing looping GIFs and video headers by default.
  • Ensure Rogabot CI/CD scanners test for high-frequency CSS animation keyframes before merging pull requests.

Audit Your Website for WCAG 2.2 Compliance Today

Scan your domain in 60 seconds with Rogabot and get instant PR-ready code diffs to prevent ADA lawsuit exposure.

View Pricing Plans