There is a success criterion that often goes unchecked, both in accessibility audits and in day-to-day production work. That criterion is 2.3.1, which addresses flashing light.
Most success criteria can be judged by inspecting the code or by measuring a single moment on the screen. But 2.3.1 can only be judged by tracking moving content second by second. Visually watching the flashing will not tell you accurately whether the content exceeds the threshold. And if a problem exists, the impact goes beyond "hard to use" and directly affects the health of the viewer.
This article outlines what success criterion 2.3.1 requires, why it is difficult to check, and how to actually check it.
What Is Success Criterion 2.3.1?
Success criterion 2.3.1, "Three Flashes or Below Threshold," is a Level A success criterion that requires the following:
Web pages do not contain anything that flashes more than three times in any one second period, or the flash is below the general flash and red flash thresholds.
"Three times per second" is a figure set on the very safe side. Research on photosensitive epilepsy has reported the following:
- Peak sensitivity occurs at 16 to 20 flashes per second.
- Most patients respond within the range of 13 to 21 flashes per second, and only a very small number respond at 3 flashes per second or below.
- Flashing at three times per second is a risk for about 3% of people with photosensitive epilepsy.
(Source: Harding & Harding, 2007)
The "three flashes" limit is set well below the range where most people react. However, keeping flashes to three or fewer per second does not completely eliminate the possibility of a seizure.
Note that Level AAA includes Success Criterion 2.3.2, "Three Flashes." This criterion prohibits any content that flashes more than three times per second, regardless of the area or brightness of the flashing.
(Reference: Understanding SC 2.3.1)
General Flash, Red Flash, and Flash Threshold Explained
In WCAG, a "flash" refers to a change in relative luminance that goes either "up then down" or "down then up." A cycle of bright to dark to bright counts as one flash.
There are two types of flashes.
- General flash: A blinking effect where the brightness changes noticeably. As a guideline, the difference in relative luminance (a value from 0 to 1 representing the brightness of a color) must be 0.1 or more, and the darker side must be below 0.80. Switching between black and white is a typical example, but content with less extreme contrast may also qualify as a general flash.
- Red flash: A blinking effect where saturated red appears and disappears. Because people are especially sensitive to red flashing, it is counted separately from brightness changes. The standard also provides a specific method for determining what counts as "red," using the ratio of the red component in RGB and the amount of change in chromaticity.
Under this approach, a "flash threshold" is considered to be met (i.e., the content passes) if either of the following conditions is satisfied.
Condition | Details |
|---|---|
Count | In any one-second period, there are no more than 3 general flashes and no more than 3 red flashes. |
Area | The combined area of simultaneously occurring flashes is 25% or less of the area within a 10-degree field of view. |
A 10-degree field of view represents the central visual field, where people are most sensitive to light stimuli. For the web, a guideline is a 341 × 256 pixel rectangle on a 1024 × 768 screen. The threshold is 25% of that area. Shape does not matter; the evaluation is based on the combined area of all flashing portions displayed at the same time. Note that content that can be displayed full-screen, such as embedded videos, should be evaluated at full-screen size.
Put simply, this checks whether a fairly large area of the screen becomes noticeably brighter and darker (or switches to and from vivid red) more than three times per second.
- General flash: Flickering between light and dark
- Red flash: Flickering between red and non-red
- Flash threshold: the line below which flashing is considered acceptable. It is defined by two factors: frequency (no more than 3 flashes per second) and area (no more than 25% of a 341 × 256 pixel rectangle).
Checking for 2.3.1 is difficult
As the definition makes clear, 2.3.1 is a success criterion that is hard to judge by eye. Determining whether content flashes more than three times per second requires tracking frames precisely, and counting light-dark reversals by eye in videos with rapid cuts is not realistic.
On top of that, you must consider frequency, brightness, and area at the same time. Content can flash rapidly and still pass if the area is small, while subtle changes in light and dark can fail if more than three flashes per second occur across a large part of the screen. Area refers to the combined size of all elements flashing at the same time, and it changes depending on display size. For these reasons, the criterion effectively requires analysis tools and is not easy to check manually.
Yet the impact is directly tied to health
A violation of 2.3.1 directly affects the body of the person viewing the content. The W3C's explanatory documentation for WCAG also states that flashing content can trigger migraines, dizziness, nausea, and seizures.
In Japan, the so-called "Pokémon Shock" of December 16, 1997 is well known. Intense flashing effects in a television anime triggered hospitalizations and medical visits for 685 people nationwide. In response, the broadcasting industry developed guidelines, which led to the familiar on-screen notice advising viewers to brighten the room and watch from a distance.
Many people overlook the fact that they may have photosensitivity without knowing it. Of the 560 people who had clear seizures during the "Pokémon Shock," 76% had never experienced a seizure before (source: Harding & Harding, 2007). Seizures can occur faster than a person can stop the content themselves, so WCAG's position is that warnings or pause buttons alone do not satisfy 2.3.1.
PEAT has long been the standard check
The go-to tool for checking 2.3.1 is PEAT (Photosensitive Epilepsy Analysis Tool) from the Trace Center. It detects violations of both general flash and red flash using an analysis engine co-developed with Dr. Graham Harding and other leading experts in photosensitive seizures. It is free to use and highly reliable.
In practice, though, it's quite a hassle to use.
- Windows only: It only supports Windows.
- Can only analyze AVI files: It can basically only analyze uncompressed AVI files. Videos such as MP4 must be converted before they can be loaded.
- Unstable capture feature: PEAT includes a screen capture feature, but the developer itself advises that "it may not always work properly, so please record with a different tool."
As a result, the workflow ends up looking like this:
- Screen-record the target page
- Convert the recorded video to uncompressed AVI
- Load it into PEAT and analyze it
- If violations are found, fix them and start over from step 1
In web page audits, embedded videos are often the main target of inspection. However, the person conducting the audit often doesn't have the original video files, so the process ends up starting with capturing the footage playing on the page. Some content, such as WebGL-based effects, doesn't exist as video files in the first place. Recording and converting every time adds a significant burden.
Area Flash Checker, Built Out of Necessity
To eliminate the hassle of recording, converting, and then loading a video, we built Area Flash Checker, a Chrome extension. It measures pages directly as they run in the browser.
Using it is simple.
- Drag to select the area you want to check
- Click "Start" to begin capturing (default: 10 seconds, adjustable from 5 to 60 seconds)
- Review the verdict, flash count, and timeline in the result card
Key features include the following.
- No recording or uploading required: The tool captures the screen as displayed in the browser and analyzes the captured frames on the spot. It measures everything moving on the page as-is, including videos, CSS animations, Canvas, GIFs, carousels, and ad slots.
- Detects 2.3.1 and 2.3.2 violations: General flashes and red flashes are evaluated separately. Red flash detection follows the definition in WCAG 2.2, and the area threshold uses the guideline's reference value (25% of a 341×256 CSS pixel rectangle).
- Timeline and flash map: Displays luminance changes, flashing area, and violation area along a time axis. Frame previews show exactly when and where within the selected area flashing occurred.
- Built for real-world pages: The tool attempts to capture at 60fps and warns you if the effective frame rate is low. It also adjusts automatically to high-resolution displays and browser zoom.
- No data is sent: Captured frames are analyzed in the browser's memory and discarded immediately. Nothing is sent externally.
Please note that this tool captures and measures the screen as displayed in the browser, so the results are approximate. Depending on your PC's performance, very rapid flashes may be missed. If you need to rigorously verify a completed video file itself, a video file analysis tool is more suitable. This tool is designed for quick checks during daily diagnostics and production work.
"So this is what gets flagged" moment
After testing many different sites, the biggest finding was that videos that appear to have no issues can sometimes still be flagged.
For example, consider footage shot from a train window.
Even without any blinking, a video where something is simply "moving" can register as a flash if the brightness at a given position rises and falls. In train window footage, where the scenery moves quickly, large areas of the screen repeatedly alternate between light and dark in a regular pattern. When we actually measured this kind of footage, a surprising number were flagged.
The measurement result image shown earlier was taken from footage recorded of railway tracks from a moving train. The general flash rate reached a maximum of 10 flashes per second, and the affected area was about 16 times the threshold, resulting in a failure of criterion 2.3.1.
Another case is color changes that are not obvious blinking. Even if it just looks like "the color changed," it can be flagged if the difference in brightness is large. Also, changes involving red can be counted as red flashes even when the difference is small.
In addition, footage from older 8mm film and similar sources is more likely to be detected as flashing due to frame-to-frame brightness fluctuations (flicker).
Looking back, the reason for these flags lies in the definition itself.
- The 0.1 difference is smaller than you might expect
To the eye, a relative luminance difference of 0.1, the condition for general flash, is a subtle change. Even without a "dramatic flash," simply switching between a darker scene and a brighter scene counts as one flash. - Videos with fast cuts can easily rack up flash counts
In brand films that smoothly alternate between cuts of differing brightness, viewers perceive only a "good tempo." Frame by frame, however, the brightness can reverse more than three times per second. - The area threshold is smaller than you might expect
The threshold covers only a quarter of a 341×256 CSS pixel rectangle. Flashes occurring simultaneously within a 10-degree field of view are evaluated by summing their areas, so even individually small flashes can exceed the threshold in total.
Conversely, content may look flickering yet fall below the threshold because its area is small, or because the number of flashes does not meet the criteria even when they are clearly visible, so it may not be a problem.
Because we cannot rely on visual impressions, measuring with numbers is meaningful. I felt that again.
Summary
Success Criterion 2.3.1 is difficult to judge either visually or through code, so it tends to go unchecked. On the other hand, the impact of a violation is significant and directly affects the health of viewers. That is why I believe it is important to be able to measure easily, both in diagnostic work and in production.
Area Flash Checker is free to use. Please give it a try and measure for yourself.
Starting out in DTP and moving into the web, he now handles markup, frontend, direction, and accessibility alike. A "master of all trades" who has been versatile since Liberogic's early days and is now a walking encyclopedia of the company. Lately he has been hooked on exploring efficiency through prompts, asking, "Can't we rely more on AI for accessibility work?" Both his skills and his thinking are still evolving.
Ayumu Futamata
IAAP Certified Web Accessibility Specialist (WAS) / Markup Engineer / Frontend Engineer / Web Director