All projects

Life & perception

Purple at Fixation

A purple dot looks purple where you look at it, and blue everywhere else. The illusion was described in 2025, it follows your gaze in real time, and it changes with how far you sit from the screen. Below are three demos and a vote, and the story of why a colour that does not exist in the rainbow behaves so strangely in the middle of your eye.
  • Perception
  • Colour vision

In simple words

Look at the purple shapes on this page. The one you are looking at is purple. Now, without moving your eyes, check the others. Are they the same purple?

Nothing on the screen changes, and yet the colour seems to follow your eyes. How can a colour depend on where you look? The answer has to do with how purple is made, and it is not made where you might think.

Important: To see this illusion properly, turn off any features that alter colours (for example Night Shift, Night Light or blue-light filters). The effect is strongest on an OLED or AMOLED display.

Which polygon looks more purple?

Let's start with a vote. Look at the shapes below and vote for the one that looks most purple to you.

Moving polygonsOpen on its own

Cast your vote:

By now you have probably noticed the catch: whichever shape you look at is the purple one. I came across this in a short paper by Hinnerk Schulz-Hildebrandt of the Wellman Center for Photomedicine in Boston, posted in September 2025 [1]. He described purple structures that look purple at the point of fixation while identical ones around them drift towards blue. Holding an OLED phone at about 30 cm, only the fixated dot looked purple, and the purple followed his gaze in real time. The effect also depends on distance. With a dense grid of small dots, only a few looked purple from 10 cm, about twice as many from 30 cm, and almost all of them from 60 cm. Warmer display settings weaken it. All three demos on this page use the colours of the paper, a purple with red and blue but no green, #6600FF, on a blue background, #495A9E.

Why it might happen

The paper is careful to say that the origin of the illusion has not yet been studied in experiments, and it proposes three ingredients that work together [1]. The first is that purple is not a spectral colour. No single wavelength looks purple. The visual system constructs it when the long-wavelength L cones and the short-wavelength S cones are excited together while the medium-wavelength M cones stay quiet, which makes purple a fragile percept, unusually sensitive to small changes [2].

The second ingredient is the centre of the eye itself. S cones make up only 8 to 12% of all cones [3], they are arranged irregularly [5], and they are almost absent from the very centre of the fovea, the spot we fixate with [4]. On top of that, the macular pigment, a yellow filter of lutein and zeaxanthin in the inner retina, absorbs short-wavelength light and is densest right at the centre. Its shadow is what makes Maxwell's spot visible against a blue field [6]. Both effects weaken the S signal at fixation, so the centre has to build purple mainly from the strong L signal, while in the periphery the S signal is relatively stronger.

The third is colour contrast. The appearance of a colour depends on its surroundings [7], and the strongly blue background pushes the peripheral purple further towards blue. The distance effect then follows naturally: from further away every dot forms a smaller image on the retina, so more of them fall inside the central region where purple survives.

Distance without moving

You do not have to walk away from your monitor to test the distance effect (laziness makes you smart!). Making the dots smaller and the grid larger does the same to the image on your retina. Change the number of dots per side, their diameter and their spacing, and notice how more dots look purple as they shrink.

Adjustable grid of purple dotsOpen on its own

A vanishing poem

The paper's third demonstration is a poem in the same purple. Read it at a comfortable distance and only the word you are reading looks purple, as if the text highlighted itself while the rest fades to blue. You can write your own poem here, save it and send it to a friend.

Vanishing poemOpen on its own

Inside the code

The illusion needs nothing but two colours, and the whole effect lives in the eye, not in the program:

// The two colours of the paper, used by all three demos: a purple with red and
// blue but no green, on a blue that mixes all three channels.
const PURPLE = '#6600FF';
const BACKGROUND = '#495A9E';

The voting demo keeps fourteen shapes in slow motion, so there is always one to fixate and many around it:

// Fourteen shapes, from a triangle to a 15-gon plus a circle, drifting slowly
// and wrapping around the edges, so the eye has something to chase.
for (const sides of [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, Infinity]) {
  shapes.push({ sides, x: rand(0, w), y: rand(0, h), vx: dx * v, vy: dy * v, angle: 0, spin: rand(-0.6, 0.6) });
}

The vote itself is stored in a small database behind an API route. The only trick is to keep it honest and cheap at the same time:

// One vote per browser (a cookie), a rate limit per network, and counts that
// the CDN may cache for 30 s, so a busy page does not hammer the database.
if (request.cookies.get(VOTED_COOKIE)) {
  return NextResponse.json({ error: 'You have already voted from this browser. Thank you!' }, { status: 409 });
}
const limit = await limitVoteRate(clientIp(request));
if (!limit.success) return NextResponse.json({ error: 'Too many votes from your network.' }, { status: 429 });
const votes = await store.incrementVote(option);

Try it yourself

Fix your eyes on one shape and, without moving them, notice how blue the others look. Then let your gaze jump from shape to shape and watch the purple jump with it. In the grid, start with a few large dots, then switch to many small ones and see how much more of the grid looks purple. Step back from the screen and the same happens again. Finally, turn your display's night mode on: as the screen warms, the illusion fades, a small sign of how much of colour is made in the eye and the brain rather than on the screen.

References

  1. [1] H. Schulz-Hildebrandt, When purple perceived only at fixation: a fixation and distance-dependent color illusion, arXiv:2509.11582 (2025).
  2. [2] M. M. Connors and M. H. Siegel, Differential color sensitivity in the purple region, J. Opt. Soc. Am. 54, 1374 (1964).
  3. [3] K. A. Hussey, S. E. Hadyniak, and R. J. Johnston Jr., Patterning and development of photoreceptors in the human retina, Front. Cell Dev. Biol. 10, 878350 (2022).
  4. [4] K. Bumsted and A. Hendrickson, Distribution and development of short-wavelength cones differ between Macaca monkey and human fovea, J. Comp. Neurol. 403, 502 (1999).
  5. [5] A. Roorda and D. R. Williams, The arrangement of the three cone classes in the living human eye, Nature 397, 520 (1999).
  6. [6] M. Gardasevic, R. J. Lucas, and A. E. Allen, Appearance of Maxwell’s spot in images rendered using a cyan primary, Vision Res. 165, 72 (2019).
  7. [7] M. A. Webster, G. Malkoc, A. C. Bilson, and S. M. Webster, Color contrast and contextual influences on color appearance, J. Vis. 2(6), 7 (2002).