half-line from E through the mixture, out to the perimeterX = P1·x-bar(λ1) + P2·x-bar(λ2), and x = X / (X + Y + Z)  ·  leaves by the spectral locus: a spectral hue, quote the dominant λ  ·  leaves by the line of purples: non-spectral, quote the complementary λ with a c  ·  E = (1/3, 1/3), the equal-energy white

Two monochromatic beams, a chromaticity diagram, and a line drawn from the white point outwards. This purple wavelength simulator is a free interactive lab that answers the question the phrase hides: a purple has no wavelength of its own, so what number do you write down instead? It opens on 450 and 650 nm at equal radiant power, which reads 0.2443, 0.0572, non-spectral (a purple) and 566c nm.

Now drag the ratio slider down and watch the verdict card, not the diagram. Somewhere around 0.3 it flips to spectral hue and the number card loses its c. That threshold is a real quantity and no other free tool on this topic exposes it — which is the one thing this panel is built to show.

Purple Wavelength Lab

Mix two monochromatic beams and watch where the colour lands on the CIE 1931 diagram. A half-line from the white point E through the mixture exits either through the spectral locus — a hue with a wavelength — or through the line of purples, where there is no wavelength to have, and the number you quote instead is the complementary wavelength, written with a c.

Chromaticity of the mixture  x, y
0.2443, 0.0572
x = X / (X + Y + Z), to 4 decimal places
Verdict  where the half-line leaves
non-spectral (a purple)
The number to report
566c nm
complementary wavelength, to the nearest 1 nm — a purple has no wavelength of its own
Spectral point at 450 nm 0.1566, 0.0177
Spectral point at 650 nm 0.7260, 0.2740
Perimeter exit point 0.2368, 0.0341
Exits through line of purples
Wavelength λ1450 nm
Wavelength λ2650 nm
Radiant power ratio P(λ2) / P(λ1)1
Radiant power in arbitrary units, never luminance · only the ratio moves the colour · wavelengths to 1 nm, chromaticities to 4 dp
Equal radiant power at 450 nm and 650 nm. The half-line from E leaves the diagram through the line of purples, so this mixture is nowhere on the spectral locus: the number to quote is its complementary wavelength, 566c nm, read off where the reversed half-line crosses the locus.
The perimeter is built from the tabulated CIE 1931 2° observer (x-bar, y-bar, z-bar at 1 nm), never from an analytic fit: on the fit the 380 nm endpoint lands at x = 0.0285 instead of 0.1741, the red tail folds back on itself, and 405 nm classifies as non-spectral — which is false · the band stops at 700 nm because every wavelength from 700 to 830 nm has the same chromaticity to six decimals, (0.734690, 0.265310), a maximum separation of 9.12e-8: 131 coincident vertices on the red corner, not distinct colours · three guards are live here — a point within 1e-6 of a tabulated locus vertex is that spectral colour, coincident vertices are merged so the perimeter carries 320 distinct points, and both powers zero shows an em dash, never 0 and never 0.3333 · the dominant wavelength is quoted to 1 nm and never to 0.1 nm: the locus moves 4.173e-5 in xy per nm at 380–400 nm against 1.612e-2 per nm at 500–520 nm, so the violet end is 386× worse conditioned and a 1e-4 slip already moves the answer 2.40 nm · radiant power, not luminance: the 450 + 650 mix crosses at a radiant ratio of 0.3084 and at a luminance ratio of 0.8685, a factor of 2.82 · a purple is a real perceived colour — it simply has no wavelength of its own, and the standard number that stands in for one is its complementary wavelength.

Load a real purple

Each button presses the lab’s own Reset first, then writes its three sliders, so every press lands on a known state whatever you did before it. Every number you then see is the lab’s own, and the line underneath quotes the readouts straight back to you.

The first five are the ladder this page is built around: a purple, the same pair that is still a violet, both sides of the threshold between them, and a control that is not a purple at all. The last two are the edge cases — one line, and no light.

Pick a mixture above, or drag the sliders yourself.

What Is the Purple Wavelength Simulator?

The purple wavelength simulator is a free interactive physics lab that runs in your browser, with nothing to install and no sign-up. It draws the CIE 1931 chromaticity diagram: the horseshoe-shaped spectral locus from 320 tabulated points between 380 and 700 nm, the straight chord that closes it along the bottom labelled the line of purples, the equal-energy white point E marked with a cross, and the two wavelengths you choose marked on the locus and joined by a chord with the mixture sitting on it.

Three sliders and two buttons drive it. Wavelength 1 and Wavelength 2 both run 380 to 700 nm in steps of 1, opening at 450 and 650 nm; the radiant power ratio of the second beam to the first runs in six decade bands from 0.0001 to 100, opening at 1. Reset returns all three, and Beams off takes both powers to zero. There is no input box, no unit menu and no mode toggle.

The verdict is the point of the panel, and it is a place rather than a number. A half-line is drawn from E through the mixture and followed to the boundary of the diagram. Leave by the locus and the readout says spectral hue and prints a bare dominant wavelength. Leave by the line of purples and it says non-spectral (a purple), runs the same line backwards from E, and prints the complementary wavelength with a c after it.

At the opening setting the three readouts give 0.2443, 0.0572, non-spectral (a purple) and 566c nm, with four chips underneath carrying the tabulated chromaticity of each chosen line, the perimeter exit point and which arc it fell on. Equal radiant power at 450 and 650 nm is the classic magenta, and 566c nm is the number a reader can actually write down for it.

Turn the red beam down and the hue gets its wavelength back, at a threshold this panel exists to show. At a ratio of 0.25 the readouts give 0.1814, 0.0289, spectral hue and a bare 426 nm. At 0.3084 they give 0.1869, 0.0313, spectral hue and 380 nm — the far end of the locus. Step the slider once more, to 0.3085, and the chromaticity does not change to four decimal places while the verdict becomes non-spectral (a purple) and the number becomes 570c nm.

That threshold belongs to the pair of wavelengths, not to purple in general, and three more pairs make the same point with different numbers. The panel reads 0.2601 against 0.2602 for 470 plus 620 nm, 0.0289 against 0.0290 for 430 plus 630 nm, and 0.0008 against 0.0009 for 405 plus 650 nm. Just past every one of those thresholds the number to report is 570c nm, because that is the complementary wavelength of the 380 nm endpoint itself.

A single wavelength is never a purple, and the panel can be made to say so directly. Set both sliders to the same value and the panel reduces to one point on the curve: the verdict stays spectral and that line becomes its own dominant wavelength. Every one of the 321 wavelengths these sliders reach behaves that way, endpoints included. Put both sliders on 405 nm, the diode line sold as purple, and the panel returns a spectral violet with 405 nm as its own dominant wavelength; what the trade name is picking up on is how faint that line looks, which is nowhere among the readings.

And two wavelengths do not automatically make a purple either. The control preset puts 480 and 580 nm at equal radiant power and returns 0.3569, 0.3558, spectral hue and a dominant 579 nm; at both ends of the ratio slider that pair still reports 480 nm and 580 nm and stays spectral throughout. The verdict is a measurement of where the colour sits, not a label attached to the word mixture.

The panel also kills the commonest wrong explanation on this topic in one drag. The chord it draws is every mixture those two lines can make, and the locus point for their mean wavelength sits near the top of the diagram, nowhere the chord goes. Averaging two wavelengths is not averaging two colours, and on this panel that becomes a matter of looking rather than arguing.

Three guards keep the classification honest, and each answers a measured failure. A point within 1e-6 of a tabulated locus vertex is treated as that spectral colour, which is what stops a deep red at the far end of the table being misread as a purple. Coincident vertices are merged, so the perimeter carries 320 distinct points rather than a zero-length edge a ray cannot intersect. And with both powers at zero every readout shows an em dash, because the chromaticity is then 0 divided by 0 — never 0 and never 0.3333.

Every vertex of the perimeter comes from the table itself rather than from the published fit to it, which matters because a chromaticity is a ratio and at the band edges all three functions are of order 1e-3. Drawn from the fit, the 380 nm endpoint would land at 0.0285 instead of 0.1741 and the red tail would fold back across the chord, so the violet corner this panel spends its time in would be in the wrong place. The band stops at 700 nm for the opposite reason: every wavelength from 700 to 830 nm has the same chromaticity to six decimals, so those are coincident points rather than new colours.

What the lab leaves out, stated as omissions rather than as assumptions that happen to hold. There are two sliders and no third, and no control anywhere that widens a line, so the answer to a real lamp or screen pixel is not on this panel at any setting.

It draws no colour swatch at all, because a chromaticity is not a screen colour and much of the diagram is outside what any ordinary display can produce. It uses one standard observer, which is a choice rather than a fact about your own vision. And it prints a dominant wavelength to 1 nm with a warning that the figure is coarse below about 420 nm, because the locus barely moves there. Nothing here is a measurement of a real source.

What you can change in the purple wavelength simulator, and what each control moves
ControlRangeStep, default and what it moves
First wavelength380 to 700 nmsteps of 1 nm, opening on 450, where the read-back beside the slider says "450 nm" and the spoken value repeats it. Its chip gives the tabulated chromaticity of that line: 0.1566, 0.0177 at 450 nm, 0.1741, 0.0050 at the bottom stop and 0.7347, 0.2653 at the top. Those two end values are the ends of the line of purples, which is why the chord that closes the diagram is drawn between them
Second wavelength380 to 700 nmthe same range and the same 1 nm step, opening on 650, whose chip reads 0.7260, 0.2740. Set it equal to the first wavelength and the two chips collapse onto one value, the caption says the mixture is a single point on the locus, and the verdict is spectral with that line as its own dominant wavelength
Radiant power ratio0.0001 to 100a decade-banded slider with a linear mantissa, six decades of 9000 unit steps, opening on 1 and printing the ratio with trailing zeros trimmed. It is the control this panel is built around, and the only one that moves the mixture along a fixed chord: at 450 and 650 nm the chromaticity walks from 0.1567, 0.0177 to 0.6963, 0.2607 across it and the verdict flips exactly once, between 0.3084 and 0.3085. Always a radiant power ratio and never a luminance, as the strip under the sliders says
Resetone buttonreturns the two wavelengths to 450 and 650 nm and the ratio to 1, and clears the beams-off latch. The landing page presses it at the start of every preset for exactly that reason, because a payload that only wrote the sliders would leave a latched panel showing an em dash in every readout
Beams offone button, a latchtakes both radiant powers to zero, which makes the tristimulus sum zero and the chromaticity 0 over 0. Every readout becomes an em dash, the sub-lines say the chromaticity is undefined and there is no colour to classify, and the canvas caption reads that both beams are off. It stays pressed until you press it again or press Reset

How to use the purple wavelength simulator

  1. Read the three readouts before you touch anything. The lab opens with Wavelength 1 at 450 nm, Wavelength 2 at 650 nm and the Radiant power ratio at 1. Chromaticity of the mixture reads 0.2443, 0.0572, Verdict reads non-spectral (a purple), and The number to report reads 566c nm over the sub-line complementary wavelength, to the nearest 1 nm — a purple has no wavelength of its own.
  2. Read the four chips under them, because the verdict is built there. Spectral point at 450 nm is 0.1566, 0.0177, Spectral point at 650 nm is 0.7260, 0.2740, Perimeter exit point is 0.2368, 0.0341 and Exits through says line of purples. The last chip is the verdict, stated as a place on the diagram.
  3. Drag the ratio slider and watch only the verdict card. From 0.0001 to 100 the chromaticity walks the whole chord, from 0.1567, 0.0177 to 0.6963, 0.2607, and the verdict changes exactly once. That single flip is the quantity this panel exists for, and the sliding is the quickest way to find it.
  4. Press Still violet, then At the crossover. The first gives spectral hue with a bare 426 nm; the second gives non-spectral (a purple) with 570c nm. Both are the same two wavelengths. The thing that changed is how much power is in the red beam, which is the whole argument against calling purple a wavelength — the wavelength formula and units guide is where a wavelength as a quantity in its own right is set out.
  5. Now set the ratio to 0.3084 by hand and read the number card. It says spectral hue, 380 nm, with the sub-line warning that the figure is coarse below about 420 nm, where the locus barely moves. Step to 0.3085 and the chromaticity is unchanged to four decimal places while the verdict is the opposite one. The threshold is that sharp.
  6. Press Control: cyan + yellow is NOT a purple and check the exit chip. 480 and 580 nm at equal radiant power give 0.3569, 0.3558, spectral hue and 579 nm, and Exits through says spectral locus. No ratio turns that pair into a purple: at the slider ends it reports 480 nm and 580 nm and stays spectral throughout.
  7. Press One line only: 520 nm twice. Both spectral-point chips collapse to 0.0743, 0.8338 and the verdict is spectral hue, 520 nm. Every one of the 321 wavelengths these sliders reach does the same thing, endpoints included, which is the measured answer to whether a single wavelength can be a purple.
  8. Press the lab’s own Beams off button. All four readouts become — and the sub-lines read X = Y = Z = 0, so the chromaticity is undefined and both beams are off, so there is no colour to classify. It is a latch, so press it again or press Reset to come back.
  9. Read the sentence under the diagram last. It writes the case out in full rather than repeating the cards, and on the crossover states it adds the thing the cards cannot say: that the half-line still leaves through the locus, “but only just”, at the far end of it.

What the diagram is showing you

The horseshoe is the spectral locus: every colour a single wavelength can make, drawn from 320 tabulated points between 380 and 700 nm. It does not close. The straight chord along the bottom, labelled line of purples in every scene the lab draws, closes it between 0.1741, 0.0050 and 0.7347, 0.2653.

Everything else on the canvas is the construction. The cross marked E is the equal-energy white at 1/3, 1/3; the straight line between the two labelled dots is the chord of every mixture of those two wavelengths; and the line from E through the mix point out to a ringed exit is the half-line whose exit decides the verdict. On a purple that line is drawn backwards as well, because that is where the c figure is read.

Dragging is the right way to find out which readings move together and a poor way to land on a particular state, because the ratio slider alone has 54001 positions. The seven preset buttons above exist for that, and the purple wavelength guide is where the subject itself is argued from scratch, with the mechanism in prose and the problems worked.

What this panel cannot do is start from a figure you already have. It has no input box and no unit menu, so a question that hands you a line in terahertz or electronvolts, or asks for one wavelength only, belongs to the purple wavelength calculator, which takes typed values, converts the units and prints the working.

Purple wavelength simulator on the Classic magenta preset, with the chromaticity diagram on the left of a wide screen and the readout and control panel on the right, under the lab's own heading Purple Wavelength Lab. The three sliders read Wavelength 1 450 nm, Wavelength 2 650 nm and Radiant power ratio 1. The chromaticity readout gives 0.2443, 0.0572 over the line x equals X divided by the sum of X, Y and Z, to 4 decimal places. The verdict readout gives non-spectral, in brackets a purple. The number to report gives 566c nm over the line complementary wavelength, to the nearest 1 nm, a purple has no wavelength of its own. Below them four chips read Spectral point at 450 nm, 0.1566, 0.0177; Spectral point at 650 nm, 0.7260, 0.2740; Perimeter exit point, 0.2368, 0.0341; and Exits through, line of purples. On the diagram the horseshoe-shaped spectral locus runs from 380 to 700 nanometres with ticks labelled 400, 500, 550, 600, 650 and 700, closed along the bottom by a straight chord labelled line of purples. A cross labelled E marks the white point. Dots labelled 450 nm and 650 nm sit on the locus and are joined by a chord with the mixture on it labelled mix, low down and left of centre. A half-line from E runs down through the mix point to a ringed exit on the line of purples, and is continued backwards from E up to the locus where a ringed point is labelled 566c nm. A four-line key names the spectral locus 380 to 700 nm, the line of purples, the chord of all mixtures of the two, and the half-line from E to the exit. The caption beneath reads that the half-line from E exits through the line of purples and that reversed, it meets the locus at 566c nm, over a second line naming the diagram as the CIE 1931 x,y chromaticity diagram with the locus from 320 tabulated points, 380 to 700 nm, ticks every 50 nm, labelled where they fit. The sentence under the diagram says 450 nm and 650 nm at a radiant power ratio of 1, that the half-line from E leaves the diagram through the line of purples, so this mixture is nowhere on the spectral locus, and that the number to quote is its complementary wavelength, 566c nm, read off where the reversed half-line crosses the locus.
The state the lab opens on, and the one every figure on this page is read against: Classic magenta, 450 and 650 nm at equal radiant power. The exit chip reads line of purples, so the number card carries a c: 566c nm. Note that the ringed 566c nm point sits on the opposite side of E from the mixture — that is the reversed half-line, and it is a construction rather than a light path.

Worked example: change one thing at a time

Nothing in the two tables below was worked out here. Each row is a state the lab was put into through its own sliders and buttons and then read back from, cell by cell, and a reading is quoted whole rather than tidied: the verdict keeps its bracketed gloss and the complementary figures keep their c.

One: the ladder, from a violet to a magenta and back out again

The first seven rows hold both wavelengths still and move only the radiant power ratio. Read the Verdict column top to bottom: it changes exactly once, between the third row and the fourth, and those two rows have the same chromaticity to four decimal places. The last four rows are the cases that are not purples.

Eleven states of the panel, read off its own three readouts and its two perimeter chips
State on the sliders Chromaticity Verdict Number to report Exits through What the state shows
450 / 650, ratio 0.0001 0.1567, 0.0177 spectral hue 450 nm spectral locus the floor of the ratio slider. The red beam is a ten-thousandth of the blue, so the answer is the 450 nm line itself
450 / 650, ratio 0.25 0.1814, 0.0289 spectral hue 426 nm spectral locus blue-heavy, and still a spectral violet. The second preset
450 / 650, ratio 0.3084 0.1869, 0.0313 spectral hue 380 nm spectral locus the last step on the spectral side. The exit point is 0.1741, 0.0050 — the end of the locus
450 / 650, ratio 0.3085 0.1869, 0.0313 non-spectral (a purple) 570c nm line of purples the same chromaticity to 4 dp, and the opposite verdict. The third preset
450 / 650, ratio 1 0.2443, 0.0572 non-spectral (a purple) 566c nm line of purples equal radiant power: the classic magenta, and the state the lab opens on
450 / 650, ratio 4 0.3965, 0.1257 non-spectral (a purple) 536c nm line of purples red-heavy magenta. The complementary figure has walked 30 nm down the green and yellow arc
450 / 650, ratio 100 0.6963, 0.2607 non-spectral (a purple) 494c nm line of purples the ceiling of the ratio slider, and the far end of that walk
405 / 650, ratio 1 0.5847, 0.2052 non-spectral (a purple) 498c nm line of purples the diode line mixed with red at equal radiant power
480 / 580, ratio 1 0.3569, 0.3558 spectral hue 579 nm spectral locus the control. A cyan and a yellow give a spectral yellow-green, not a purple
520 / 520, ratio 1 0.0743, 0.8338 spectral hue 520 nm spectral locus one line twice: a point on the locus, so spectral by construction
both beams off — — — — the 0/0 guard. Nothing is printed, because there is no colour

The two middle rows are the whole page in two lines. One part in ten thousand of radiant power separates a hue with a wavelength from a hue without one, and the chromaticity readout cannot tell them apart at the precision it prints. The verdict is not a refinement of the number; it is a different kind of statement about where the colour sits.

It also sets the limit of what a chromaticity on its own is worth. 0.1869, 0.0313 means 380 nm in one row and 570c nm in the next, so a chromaticity quoted to four decimal places near the violet end is not enough to classify a colour. That is why the calculator version of this construction prints which arc the exit fell on rather than the figure alone.

Two: where the hue stops having a wavelength, for four different pairs

The threshold is not a property of purple in general: every blue-plus-red pair has its own. The second column is the ratio an independent reference run bisects for; the two pairs of columns after it are what the panel actually prints on each side of it, driven through the real slider.

Four blue and red pairs, with the panel readings on both sides of each threshold
Pair on the sliders Crossover ratio Still spectral at Dominant there Already a purple at Complementary there
450 + 650 nm 0.3084 0.3084 380 nm 0.3085 570c nm
470 + 620 nm 0.2601 0.2601 380 nm 0.2602 570c nm
430 + 630 nm 0.0290 0.0289 381 nm 0.0290 570c nm
405 + 650 nm 0.0008 0.0008 381 nm 0.0009 570c nm

The last column is the same string four times, and that is a result rather than a formatting accident. Just past every one of these thresholds the panel reports 570c nm, because at the threshold the half-line passes exactly through the 380 nm end of the locus, and 570c is the complementary wavelength of that endpoint. Four pairs, four different ratios, one answer. One row also prints 0.0290 in two columns, which is rounding rather than a second meaning: the 430 plus 630 nm threshold is the only one of the four that rounds up at the fourth decimal place, so its crossover coincides with the purple side instead of the spectral one.

The fourth row is the one worth sitting with. A 405 nm diode needs a red beam at 0.0009 of its radiant power — less than a thousandth — before the panel calls it a purple, because 405 nm already sits within 25 nm of the end of the locus. At 0.0008 it is still spectral hue, dominant 381 nm.

Three: reading the number, and why the suffix is not decoration

The number card prints one of two quantities and never says which by changing the units, because they share one. A bare 426 nm is a dominant wavelength: a real wavelength the mixture has. 566c nm is a complementary wavelength: the wavelength on the far side of the white point, standing in for a wavelength the mixture does not have.

They move in opposite directions as you add red, which is the clearest way to tell them apart on the panel. Over the rows above, the dominant figure walks down from 450 to 380 nm as the red beam comes up; past the threshold the complementary figure then walks down too, from 570c to 494c nm, but it is now reading off the green and yellow arc rather than the violet one.

Formula and symbol reference

The band at the head of this page carries the construction and the two outcomes, and every readout on the panel is an input to it or a consequence of it. The chromaticity is the only quantity the lab computes forwards; everything below it is that chromaticity being classified.

The symbol column below uses the panel’s own names, and the “in this lab” column gives each slider’s real end stops with the readings measured at those positions. Five of the rows are not controls at all: they are tabulated, fixed, computed or withheld.

Every quantity this panel names, with the span it covers and a reading from each end
Symbol What it is SI unit In this lab
λ1 The first monochromatic line. Its tabulated chromaticity is a point on the spectral locus, and the lab marks it there nm the first slider, 380 to 700 nm in steps of 1, opening on 450. The chip beside it reads Spectral point at 450 nm with 0.1566, 0.0177; at the bottom stop it reads 0.1741, 0.0050 and at the top 0.7347, 0.2653, which are the two ends of the line of purples.
λ2 The second monochromatic line. Set it equal to the first and the lab reduces to a single spectral point nm the second slider, the same 380 to 700 nm range and the same 1 nm step, opening on 650, whose chip reads 0.7260, 0.2740. There is no third line and no broad spectrum: this panel mixes exactly two.
P(λ2) / P(λ1) Ratio of the radiant power in the second beam to the radiant power in the first. Only the ratio moves the colour, which is why it is one control rather than two none — a ratio of two radiant powers the third slider, and a decade-banded one with a linear mantissa rather than a true logarithmic sweep: the element itself runs 0 to 54000 in steps of 1, six decades of 9000 steps of 0.001 in the mantissa, so the ratio spans 0.0001 to 100 and 1 sits at index 36000. That is why 0.3084 and 0.3085 are neighbours on it at all. The chip prints the ratio with trailing zeros trimmed, so it reads 0.0001 rather than 0.0001000.
P1, P2 The two radiant powers themselves, in arbitrary units. Always radiant power and never a luminance, which the strip under the sliders states outright arb. units not controls on this panel. The first is held at 1 and the second is the ratio above, so 1 and 1 gives exactly what 1000 and 1000 would. The Beams off button takes both to zero, which is the one state with no answer.
x, y Chromaticity of the mixture: the two numbers that fix a colour once brightness is divided out none — a ratio the headline readout, to 4 decimal places, with x = X / (X + Y + Z), to 4 decimal places under it. Over the ratio slider at 450 and 650 nm it runs from 0.1567, 0.0177 to 0.6963, 0.2607. Both powers zero gives —, never 0 and never 0.3333.
x-bar, y-bar, z-bar The CIE 1931 2-degree colour-matching functions. The lab writes them out in words because the barred letters are not safe to draw none — weighting functions tabulated, not fitted. The panel holds 321 rows at 1 nm across the closed band and builds a perimeter of 320 distinct points from them. The sliders step in whole nanometres, so every value used is a tabulated row and nothing is ever interpolated.
X, Y, Z Tristimulus values of the mixture. They add in proportion to radiant power, which is what makes a mixture lie on the chord arb. units not displayed, because only their ratios matter. Their sum is the quantity the 0/0 guard watches: when it is zero the sub-line reads X = Y = Z = 0, so the chromaticity is undefined and every readout is withheld.
E The equal-energy white point, and the origin of the construction. Every half-line on the diagram starts here none — a chromaticity fixed at 1/3, 1/3 and marked with a cross labelled E. It is not a control and it is not a setting: it is the reference the exit point is measured from, and moving it would change every answer on the panel.
Dominant wavelength The wavelength at which the half-line leaves the spectral locus. Printed bare, with no suffix, because the hue really does have this wavelength nm the number card when the verdict is spectral hue, to the nearest 1 nm. Observed here from 380 nm at the crossover to 579 nm for the control row. Below about 420 nm the sub-line adds that the figure is coarse, because the locus barely moves there.
Complementary wavelength The wavelength at which the REVERSED half-line crosses the locus, used when the forward one leaves by the line of purples nm, written with a c the number card when the verdict is non-spectral (a purple), also to 1 nm. Across the whole ratio slider at 450 and 650 nm it runs 570c to 494c nm. The backwards half-line lands on the arc between green and yellow, where a nanometre of locus is at its widest.

The unit column is mostly empty on purpose. A chromaticity, a tristimulus ratio and a power ratio are all dimensionless, so the only real units on the panel are the nanometres on two sliders and the arbitrary units on the powers. If what you want instead is one of those lines restated as a frequency or an energy, the photon energy calculator does the second and the wave number calculator the phase-per-metre form.

Two names in that table collide with other pages on this site and are worth separating before you substitute. The letter used here for the equal-energy white point is a chromaticity, not an energy; and the two capitals in the tristimulus triple are not the same quantities as the symbols of the same shape in mechanics or electromagnetism. Both conventions are standard, and no reading here should be carried into a formula from the other.

The physics: the perimeter, and the two ways out of it

Every colour one wavelength can produce is a point on one open curve. Mixtures fill the region inside it, because adding two lights adds their tristimulus values, so a mixture of two lines always lands on the straight chord between them. That is why the panel draws the chord: it is the complete set of colours those two sliders can make.

The curve does not close, and the gap is the whole subject. Joining its ends with a straight chord completes the boundary of what the eye can see, but no wavelength lands on that chord. Colours there are on the border of the gamut and have no counterpart in monochromatic light, which is a geometric fact about the curve rather than a shortcoming of any instrument.

So the construction has two outcomes, and the chip naming the arc is the panel telling you which one it got. Watch the ringed exit as you drag the ratio: while it rides the curve, the number card is printing a wavelength the hue really has. Push it onto the chord and there is nothing under the ring to read, which is when the backwards half-line appears and the card picks up its c.

This is also why a purple never appears in a prism spread. A spread sorts white light by wavelength, so what it lays out is the curve, and anything absent from the curve is absent from the spread. The dispersion of light guide owns that spread and the dispersion simulator draws it; this panel only explains the absence.

One neighbouring idea is worth keeping separate. A chromaticity is two numbers, and the light scale guide is where the argument about collapsing those two numbers into one is made. This panel does something different: it keeps both numbers and asks which part of the boundary they point at.

The five parts of the canvas, what each one paints and what it refuses to claim
Part of the canvas What it paints What it does not claim
the locus and its ticks A horseshoe drawn from 320 tabulated points between 380 and 700 nm, with ticks every 50 nm. The lower caption reads CIE 1931 x,y chromaticity diagram; locus from 320 tabulated points, 380-700 nm; ticks every 50 nm, labelled where they fit it does not claim every tick is labelled. The tick marks themselves are drawn at every width; the number beside one is placed only where a free box is found, tested against the labels already on the canvas, and dropped outright rather than shrunk or overprinted when none is free. That test knows about text and nothing else, so a label that clears every other label can still be crossed by a component marker or by one of the two chords — in the opening scene 400, 650 and 700 all are. A missing number still never means a missing tick. At the narrowest canvas the caption shortens to CIE 1931 x,y diagram, locus 380-700 nm
the line of purples The straight chord closing the horseshoe, from 0.1741, 0.0050 to 0.7347, 0.2653, with the words line of purples printed along it it never degrades away. The four-line key is dropped on the narrowest canvas and the captions shorten twice, but that label is drawn in every scene, because it is the one thing the tools on this keyword never name. It is a chord and not a measured curve, and the diagram draws it straight
the chord and the mix point A straight line between the two chosen spectral points, with the mixture on it labelled mix. The key calls it chord: all mixtures of the two the chord is every mixture of those two lines and nothing else. A colour inside the horseshoe but off the chord cannot be made from these two wavelengths at any ratio, so the panel is not a general colour picker and does not pretend to be
the half-line and its ring A line from E through the mixture to the perimeter, with the exit point ringed and labelled. On a purple it is continued backwards from E as well, and the caption reads the half-line from E exits through the line of purples; reversed, it meets the locus at 566c nm the backwards half is a construction, not a light path. Nothing is travelling along it and no beam of that wavelength is present in the mixture. It is how the standard number for a purple is defined, and the ringed point is where it is read
the verdict strip A sentence under the diagram naming both wavelengths, the ratio, which arc the half-line left through and the figure to quote. On the single-line case it reads a single point ON the locus, so a spectral hue: dominant 520 nm it reports the current state and claims nothing about colour appearance. The panel draws no colour swatch at all, because a chromaticity is not a screen colour and showing one would imply a fidelity no browser can promise. With both beams off it reads both beams off: no mixture to classify
Purple wavelength simulator one step below the crossover, with the radiant power ratio set by hand to 0.3084 and the two wavelengths unchanged. The three sliders read Wavelength 1 450 nm, Wavelength 2 650 nm and Radiant power ratio 0.3084. The chromaticity readout gives 0.1869, 0.0313. The verdict readout gives spectral hue, not the non-spectral verdict of the opening state. The number to report gives 380 nm, printed bare with no c, over the line dominant wavelength, to the nearest 1 nm, coarse below about 420 nm, where the locus barely moves. The four chips read Spectral point at 450 nm, 0.1566, 0.0177; Spectral point at 650 nm, 0.7260, 0.2740; Perimeter exit point, 0.1741, 0.0050; and Exits through, spectral locus. On the diagram the mixture sits very low and far to the left, close to the junction between the horseshoe and the straight chord, and the half-line from E runs down through it to a ringed exit labelled 380 nm right at the tip of the locus where the line of purples begins. There is no backwards half-line, because the verdict is spectral. The ticks labelled 500, 550, 600, 650 and 700 are drawn but the 400 and 450 labels are omitted where they would collide. The caption beneath reads that the half-line from E exits through the spectral locus with a dominant wavelength of 380 nm, over the same second line naming the diagram as the CIE 1931 x,y chromaticity diagram with the locus from 320 tabulated points. The sentence under the diagram says 450 nm and 650 nm at a radiant power ratio of 0.3084, that the half-line still leaves through the spectral locus but only just, that the dominant wavelength is 380 nm, the far end of the locus, and that this is the crossover, so a touch more power in the longer-wavelength beam and the hue stops having a wavelength at all.
One step below the threshold, at a radiant power ratio of 0.3084: the verdict is spectral hue and the number card prints a bare 380 nm. The exit chip reads 0.1741, 0.0050, which is the 380 nm endpoint itself, so the half-line is leaving through the very last point of the locus. One step up, at 0.3085, those same two chromaticity figures are still on screen under a verdict of non-spectral (a purple) and a number card reading 570c nm.

Where the purple wavelength simulator breaks down

Every state the three sliders and two buttons reach is answered, and the arithmetic is not where this panel can let you down. What it is not is a model of a real light source, and what it refuses to do is treat its own idealisations as facts. The first two items below matter more than the rest together.

Two monochromatic lines are not a real spectrum
This is the hard limit. Nothing you can buy emits two infinitely narrow lines. A real lamp, screen pixel or dye has a broad spectral power distribution, and getting its chromaticity means integrating that distribution against the three colour-matching functions rather than reading two table rows. The panel is a two-line idealisation chosen because it isolates the geometry; it is not a colorimeter and no reading here is a measurement of any physical source.
A chromaticity is not a colour you can see on a screen
The panel draws no colour swatch at all, deliberately. A chromaticity is a position in a plane, and showing it as a screen colour would need a display whose own primaries are known and calibrated, which no web page can assume. It would also be impossible for most of the diagram: much of the area inside the horseshoe, including nearly all of the violet corner, is outside what any ordinary display can produce.
The dominant wavelength is coarse at the violet end, and the readout says so
Drag the first slider through the violet corner and watch how little its marker travels: 4.173e-5 of arc per nanometre between 380 and 400 nm, against 1.612e-2 per nanometre up at 500 to 520 nm. Run that 386-fold gap backwards and a 1e-4 wobble in the chromaticity buys 2.40 nm of answer down there and almost none in the green. That is why the figure is printed to 1 nm and never to 0.1 nm, and why the sub-line adds the words coarse below about 420 nm. The complementary figure escapes all of this: the backwards half-line lands up on the green and yellow arc, where one nanometre of locus is wide.
The band is 380 to 700 nm, and widening it would add nothing
Past 700 nm the table has no new chromaticity to offer: every wavelength from 700 to 830 nm sits at 0.734690, 0.265310 to six decimals, a maximum separation of 9.12e-8. Those are 131 coincident points on the red corner, not distinct colours, and a ray intersection is undefined on a zero-length edge. The sim merges them; the band it draws is also the visible band a space-agency education page gives.
One standard observer, and it is a choice
The whole panel is built on the CIE 1931 2-degree observer. That is a standard, averaged over a small number of people a century ago, for a small central field of view. A wider-field observer or a more recent revision would move every chromaticity on this screen a little, and the figures would move with them. Nothing here is a statement about your colour vision, which differs from the average by more than the digits suggest.
Radiant power is not brightness, and only one of them is a control
The ratio slider is a radiant power ratio, as the strip under it says. Read it as a brightness ratio instead and you would go hunting for the flip at 0.8685 rather than at the 0.3084 the panel actually shows, the two scales being 2.82 apart at that point. So two mixtures this panel weights equally are not equally bright, and nothing on the screen is a brightness.
It mixes by ratio, so absolute power is invisible
Only the ratio moves the colour, which is correct for chromaticity and means the panel cannot show you anything about intensity. 1 and 1 gives exactly what a million and a million gives. Everything about adaptation, glare, how dim a violet looks and whether you could see the mixture at all is outside what two chromaticity coordinates can carry, and the panel does not pretend otherwise.
The colour names in the preset titles are conventional, not derived
The lab asserts exactly one hue boundary, the published 380 to 435 nm violet band, and invents no edges for blue, green, yellow or red. Where violet stops at the short end is a question the ultraviolet radiation guide answers. Words like magenta and cyan in the button titles are there to tell you which button to press, and no figure on the panel depends on them.
Three sliders, two buttons, and no way in from a number you already have
You set two wavelengths and one ratio, and the lab reports what they imply. There is no box to type a chromaticity into, no unit menu, no way to run the construction backwards from a complementary wavelength to a mixture, and no third line. The dataset behind it was validated against thirteen published properties rather than measured here.

Where the complementary wavelength is actually used

Writing down a number for a purple instead of saying it has none
This is what the first preset is for, and it is the question no ranking page on this topic answers. Equal radiant power at 450 and 650 nm gives 0.2443, 0.0572, a verdict of non-spectral (a purple) and the figure 566c nm. The c is not optional: it is what tells a reader the number came off the opposite arc rather than being a wavelength present in the light.
Reporting colour coordinates that land on the purple line
Published work that measures colours spread between red and blue hits this constantly: most of those coordinates have no dominant wavelength to quote, so the complementary one is used instead. A 2025 biomedical optics paper does exactly that, joining each measured coordinate to the white point and extending to the locus, and says in as many words that the dominant wavelength cannot be calculated in most of its cases.
Deciding whether a two-line mixture is a purple at all before you quote anything
Press Control: cyan + yellow is NOT a purple and then the magenta preset, and the difference is a chip. Exits through says spectral locus in one and line of purples in the other, and that single word decides which of the two quantities you are allowed to report. Two wavelengths do not make a purple; a particular pair of wavelengths at a particular ratio does.
Settling what a violet laser actually is
Set both sliders to 405 nm and the verdict is spectral hue with a dominant 405 nm: one line, on the locus, inside the published violet band. Nothing on the panel makes it a purple; the trade name is about how faint the line looks, and a deep violet buys its brightness at 1562 times the radiant power that 555 nm would spend for the same effect. Add red at 0.0009 of that power and only then does the verdict change.
Checking an explanation that says purple is just red plus blue averaged
The panel kills that in one drag. Set 450 and 650 nm, note that the mixture is at 0.2443, 0.0572, and look at where 550 nm sits on the locus: 0.3016, 0.6923, near the top of the diagram, 0.6377 away. The chord the panel draws is the complete set of mixtures and it passes nowhere near that point, which is a stronger argument than any sentence.
Placing the visible band inside the rest of the spectrum
Both sliders cover 380 to 700 nm, which is the whole of what this construction can classify and a narrow slice of everything else. The electromagnetic spectrum guide is where that slice is put in proportion, and the electromagnetic spectrum simulator has a single wavelength slider that runs from radio to gamma so you can see how small this panel’s range is.
Knowing when this construction is the wrong tool
Two cases make it wrong rather than imprecise. If what you have is a broad spectral power distribution rather than two lines, the chromaticity has to be integrated first and no setting of these sliders stands in for that. And if what you want is a peak wavelength from a temperature, that is a different relation on a different page — the Wien’s law calculator — and a peak is not a hue.
Purple wavelength simulator on the Control preset, cyan plus yellow, which is not a purple. The three sliders read Wavelength 1 480 nm, Wavelength 2 580 nm and Radiant power ratio 1. The chromaticity readout gives 0.3569, 0.3558. The verdict readout gives spectral hue. The number to report gives 579 nm, bare, over the line dominant wavelength, to the nearest 1 nm, with no coarseness warning because the figure is well away from the violet end. The four chips read Spectral point at 480 nm, 0.0913, 0.1327; Spectral point at 580 nm, 0.5125, 0.4866; Perimeter exit point, 0.5032, 0.4958; and Exits through, spectral locus. On the diagram the two labelled dots sit far apart on the upper part of the horseshoe, one on the cyan side at the left and one on the yellow side at the right, and the chord between them passes close to the cross labelled E near the middle of the plot. The mixture labelled mix sits on that chord just above and right of E, and the half-line from E runs through it a short way to a ringed exit labelled 579 nm on the locus between the 550 and 600 nm ticks. There is no backwards half-line. All seven wavelength ticks from 400 to 700 are labelled in this scene. The caption beneath reads that the half-line from E exits through the spectral locus with a dominant wavelength of 579 nm, over the second line naming the diagram as the CIE 1931 x,y chromaticity diagram with the locus from 320 tabulated points, 380 to 700 nm. The sentence under the diagram says 480 nm and 580 nm at a radiant power ratio of 1, that the half-line from E still leaves the diagram through the spectral locus so this mixture does have a wavelength of its own, a dominant wavelength of 579 nm, and that averaging the two wavelengths instead would land on a colour the mixture never reaches.
The Control preset, and the reason the verdict means anything: two wavelengths at equal radiant power that give a spectral hue. The chord between 480 and 580 nm runs across the top of the diagram and passes close to E, so the half-line is short and leaves through the locus at 579 nm. Note the caption’s last clause — the mean of 480 and 580 is 530 nm, and the exit is 579 nm, so even here averaging the wavelengths gives the wrong answer.

Where to go next

A panel can put you in a state and let you move one thing at a time, and that is the end of what a panel is for. The purple wavelength guide is where the subject is written out: why the eye produces a colour with no wavelength, the comparison between violet and purple, the diagram drawn step by step, and the problems worked from two lines to a number you can quote.

Four posts own the pieces this lab takes as read. The wavelength formula and units guide owns the quantity itself, the dispersion of light guide owns the prism spread this page only explains the gap in, the ultraviolet radiation guide owns what lies past the violet end, and the electromagnetic spectrum guide puts the whole visible band in proportion.

One more is worth having beside this one. The light scale guide is where the argument about what a single figure can and cannot say about a colour is made, which is the neighbouring question to this one and deliberately a different page.

On the tool side, the purple wavelength calculator takes typed lines in nanometres, terahertz or electronvolts and runs this same construction with the working shown, the photon energy calculator turns one line into an energy, the wave speed calculator owns the wave relation, the wave number calculator gives phase per metre, and the Wien’s law calculator answers the peak-wavelength question this one does not.

Two neighbouring pictures sit beside this one: the dispersion of light simulator and the electromagnetic spectrum simulator. Beyond them there is the simulation library, an index of calculators, and the blog for everything written out at length.

Frequently asked questions

What wavelength is purple, according to this lab?

None of its own, and the lab says so in words rather than refusing to answer. Press the first preset and the verdict card reads non-spectral (a purple) while the number card reads 566c nm. That c is the mark of a complementary wavelength: the mixture sits on the line of purples, so the half-line is run backwards and the figure comes off the opposite arc.

What does the letter c after the number mean?

It marks the figure as a complementary wavelength rather than a dominant one. A spectral hue has a wavelength of its own, so the lab prints a bare figure such as 426 nm. A purple does not, so the lab prints 566c nm instead and the sub-line underneath reads that a purple has no wavelength of its own. Dropping the c would turn an honest number into a false claim.

Why does averaging the two wavelengths not work?

Because averaging wavelengths is not averaging colours, and the lab shows the gap. Set 450 and 650 nm at equal radiant power and the mixture lands at 0.2443, 0.0572. Their arithmetic mean, 550 nm, is a spectral green at 0.3016, 0.6923, which is 0.6377 away in a plane whose whole gamut spans about 0.8. The chord the lab draws never goes near it.

Is a 405 nm purple laser violet or purple?

Violet, and the lab is unambiguous about it. Set both sliders near 405 nm and the verdict is spectral hue with a dominant wavelength of 405 nm, because a single line is a point on the locus. Nothing you can do to the ratio slider changes that while both sliders hold one value. The trade name is about how faint a deep violet looks, which is not a quantity this panel reports.

Why is the third slider a radiant power ratio and not a brightness?

Because radiant power is what adds, and brightness is not. Tristimulus values add in proportion to radiant power, so that one slider fixes where on the chord the mixture sits and the two absolute powers never matter. Relabel the same control as a brightness ratio and the verdict would flip at a quite different place on it, which is why the strip underneath names the quantity instead of leaving you to guess.

Why do the wavelength sliders stop at 700 nm?

Because past 700 nm the table has nothing new to show. Every wavelength from 700 to 830 nm sits at the same chromaticity to six decimal places, so a slider that ran further would move the marker nowhere and would give the exit point nothing distinct to land on. The sim merges that pile-up on the red corner and draws a perimeter of 320 distinct points instead.

What happens if I switch both beams off?

All four readouts go to an em dash and the caption says there is no mixture to classify. With both radiant powers at zero the tristimulus sum is zero, so the chromaticity is zero divided by zero and there is no colour at all. A tool that printed 0 or 0.3333 there would have invented one. Press Reset to come back to 450 and 650 nm at equal power.

How precise is the dominant wavelength the lab prints?

To the nearest 1 nm, and the sub-line warns that it is coarse below about 420 nm. No tenth of a nanometre is printed anywhere on the panel, because down in the violet corner a whole nanometre of slider barely moves the marker, so a tenth would be reporting the rounding rather than the colour. A complementary wavelength carries no such warning: it is read off the green and yellow arc, where the same step is wide.

References & formula source

  • Every figure on this page comes from one construction and three controls. Two monochromatic lines at radiant powers P1 and P2 have their tristimulus values added in proportion to those powers; dividing each by the sum of all three gives the chromaticity x and y; a half-line is then drawn from the equal-energy white point through that chromaticity and extended to the perimeter of the diagram. The arc it crosses decides which of two quantities is reported: the wavelength at an exit on the horseshoe, or, for an exit on the straight chord, the wavelength that same line meets after being run backwards through the white point, which carries a c.
  • The colour-matching functions are the tabulated CIE 1931 2-degree standard observer at 1 nm, taken from an open-source colorimetry dataset that cites the CIE standards archive as its own provenance, because the archive host itself was unreachable on every attempt this run. The table was not accepted on trust: it was validated against thirteen independently published properties before it was used, among them a y-bar peak of exactly 1.000000 at 555 nm, equal integrals of the three functions to 0.033 per cent, a flat spectrum landing on one third, one third, and four published locus chromaticities at 380, 520, 610 and 700 nm reproduced to four decimal places.
  • The construction itself is the standard one, and two independent sources state it in the same terms: an encyclopedia article on dominant wavelength, which also states that where the line meets the line of purples the complementary wavelength is used instead, and a 2025 biomedical optics paper that determines complementary wavelengths exactly this way, by joining measured coordinates to the white point and extending to the locus. That paper gives the reason as plainly as anyone: the coordinates are spread along the non-spectral purple line between red and blue, so the dominant wavelength cannot be calculated in most cases.
  • Every vertex of the perimeter comes from the table itself, not from the published multi-lobe fit to the same functions. All three functions collapse towards 1e-3 at both band edges, and dividing one small number by the sum of three others is where a fit spends its accuracy: at 380 nm it gives 0.0285, 0.0354 against a tabulated 0.1741, 0.0050, and its locus folds back along the red tail, putting the purple chord inside the real gamut. Put both sliders on 405 nm against a perimeter built that way and the panel answers non-spectral for a single line, the one verdict this lab exists to rule out. In the interior the two agree, at 610 nm to three decimal places.
  • The band stops at 700 nm because the table stops saying anything new there. The far red is where it runs out of distinct colours: from 700 nm to 830 nm it repeats one pair of coordinates, 0.734690 and 0.265310, to six decimal places and never varies by more than 9.12e-8, because one of the three functions is flat zero across that span and the other two hold a fixed ratio. The merge that follows is what leaves the perimeter with 320 distinct points. 380 to 700 nm is also the visible band a national space agency education page gives.
  • Precision is bounded by the geometry rather than chosen for neatness: wavelengths are printed to the nearest 1 nm and never to 0.1 nm, chromaticities to 4 decimal places, and the readout itself adds that a dominant wavelength below about 420 nm is coarse. The two arc lengths that force those rules were measured by the independent reference run at each end of the locus, and are quoted once, in the breaks-down list above.
  • The one luminance figure on this page comes from the same validated table, because the photopic luminous efficiency function is the middle colour-matching function. At 405 nm that function reads 6.400e-4 against 1.000 at 555 nm, and its reciprocal is the single multiple quoted once in the list of uses above. An encyclopedia article on the luminous efficiency function supplies the normalisation this rests on, a peak value of unity at 555 nm, which the table independently reproduces exactly. No other photometric quantity is printed anywhere on this page.
  • Six external sources support the figures on this page and no others were used: an encyclopedia article on the CIE 1931 colour space, for the mixing relations, the spectral locus, the line of purples and the equal-energy white point; an encyclopedia article on dominant wavelength, for the construction; a 2025 biomedical optics paper, for an independent published use of it; a national space agency education page, for the visible band; the tabulated standard observer dataset; and an encyclopedia article on the luminous efficiency function. The one external link this page carries is appended automatically at the foot of this list.
  • The simulation was built, gated and frozen before this page was written, and every readout string quoted here was read back out of the running file rather than computed here. An independent reference oracle at 32 checks with none failing; a Node tier at 215 checks with none failing; a headless Chrome tier at 1230 checks with none failing; a mutation run in which all 78 seeded faults were killed; a compact-height pass measured at 928 pixels against a 1000 pixel ceiling; and a cross-browser pass in which 19 comparisons came out identical and none differed.
  • What was not verified, stated as a gap rather than left to be assumed. Safari and WebKit: the build on the machine this was tested on cannot start, so Safari was never exercised and nothing here is evidence about it. Assistive technology: every slider carries a label and a spoken value, the diagram carries a full description and the preset status line is a live region, but no screen reader was driven and no real touch target was pressed. No physical measurement of any kind was made, and no spectrophotometer or colorimeter reading was compared with anything on this page.
  • Nothing on this panel is an observation, and every figure above is bounded by the model rather than by an instrument. Each one follows from one published table, two slider positions and one ratio, so it is reproducible to the last digit and says nothing in particular about any lamp, diode or display you could buy. The limits that narrow it are set out where they bite, in the section on where this panel breaks down, rather than gathered here. Verify any figure against your own source before you use it for anything that matters.
  • Further reading: CIE 1931 color space — Wikipedia