X = P1 · x-bar(λ1) + P2 · x-bar(λ2)x = X / (X + Y + Z)  ·  exit on the spectral locus = dominant λ  ·  exit on the line of purples = complementary λ, written 566c nm

Purple has no wavelength of its own, because it is not a point of the spectral locus — the curve of single wavelengths. So the number you write down instead is its complementary wavelength, marked with a c: 566c nm for the classic magenta. Four boxes here, two lines and two radiant powers, and one headline out.

Two decisions are what make that a verdict rather than an opinion. The curve the answer is measured against is the tabulated CIE 1931 2-degree observer at 1 nm rather than any fitted stand-in for it, and the two power boxes are radiant power rather than brightness. Change either one and the same two lines come back classified differently, which is why both are named on the page instead of being left for you to assume.

Load a real case

Each button writes the two wavelengths and the two radiant powers into the four boxes, so the verdict changes the moment you press it. The line underneath quotes back whatever the widget then works out, so nothing in it is stored text. All eight sets of figures are stated givens chosen to make a point, not measurements of any named lamp or laser.

Pick a case above, or type your own figures.

What Is the Purple Wavelength Calculator?

The purple wavelength calculator is a free online tool that settles what to write down when the thing you are describing has no wavelength at all. Give it one or two spectral lines and their radiant powers and it returns the chromaticity x and y, a verdict of spectral hue or non-spectral (a purple), and the figure to report — a dominant wavelength when the colour has one, or a complementary wavelength written with a c when it does not.

Why purple has no wavelength is geometry, not a limitation of the instrument. Every colour a single wavelength can make lies on one open curve, the spectral locus, and the straight chord that closes it between the 380 nm end at (0.1741, 0.0050) and the 700 nm end at (0.7347, 0.2653) is the line of purples. Every purple there is sits on that chord, which is why none of them has a wavelength to quote.

The construction is the whole method. A half-line is drawn from the equal-energy white point at (0.3333, 0.3333) through the colour and extended until it leaves the diagram. Leave by the locus and the wavelength at the exit is the dominant wavelength; leave by the line of purples and there is no wavelength there, so the same line is run backwards and the wavelength it meets on the locus is the complementary wavelength.

The classic magenta is 566c nm. Equal radiant power at 450 and 650 nm lands at x = 0.2443, y = 0.0572, which is non-spectral, and its complementary wavelength is 566c nm. Shift the ratio to 4 and the same pair reports 536c nm at 0.3965, 0.1257. The c is carried by both of the places the figure appears, the headline unit and the chip beneath it, because it is part of the number rather than a note about it.

A single wavelength is never a purple. All 321 wavelengths from 380 to 700 nm at 1 nm classify as spectral hues on this page, endpoints included, which is the measured answer to whether a 405 nm diode is violet or purple: it is violet, one line, dominant wavelength 405 nm, 3.061 eV, inside the published 380 to 435 nm violet band. Leaving line 2 blank is how that case is entered, and no power ratio underneath it can change the verdict.

And a two-wavelength mix is not automatically a purple. A cyan added to a yellow stays in the well-behaved part of the curve, and the crossover chip for that pair reports no threshold at all rather than a large one. The worked tables carry its readings; the reason for carrying them is that a verdict only means something if it is capable of coming back either way.

The crossover is the quantity no other tool on this keyword exposes. Along a blue-plus-red chord there is a sharp radiant power ratio at which the hue stops having a wavelength: 0.3084 for 450 plus 650 nm, 0.2601 for 470 plus 620 nm, 0.0290 for 430 plus 630 nm and 0.0008 for 405 plus 650 nm. At the crossover the exit point is the 380 nm end of the locus itself, which is why the complementary wavelength just past the threshold is about 570c nm for every one of those pairs.

Every power on this page is a radiant power, and the label matters. Only the ratio of the two boxes reaches the arithmetic, so the unit they are typed in never has to be declared. What does have to be declared is that they are radiant and not photometric, because the same pair of lines crosses over in a different place in the two systems, and the page says which one it is using.

What the verdict is measured against is a table, not a curve fitted to one. That is not a preference: measured against the published approximation instead, this page would answer non-spectral for a single 405 nm line, which is the wrong answer to the question it is asked most often. The references on the page give the figures that rule the approximation out.

Wavelengths are printed to the nearest 1 nm, never to 0.1 nm, and chromaticities to 4 decimal places. Those two formats are the most that the measured conditioning of the locus will support, and the limits section on the page gives the arc lengths they were derived from. Anything the page returns below about 420 nm arrives with a warning attached as well, because a whole nanometre is already a band down there.

What the page does not do is worth naming as plainly as what it does. It mixes exactly two monochromatic lines, so a broad real source has to be integrated against the colour-matching functions before any of it applies; it classifies only inside 380 to 700 nm and refuses anything outside that in words rather than guessing; it fixes one hue boundary only, the published violet band, and names no edge for any other colour; and with both radiant powers at zero it prints no number at all, because the chromaticity is then 0 over 0 rather than a colour.

Inputs the purple wavelength calculator takes
SymbolQuantityDefault unitAlso acceptsExample value
λ1First spectral linenmTHz or eV for the same line; 380 to 700 nm450
λ2Second spectral linenmblank for one line only; THz or eV650
P1Radiant power of line 1arb. unitsany unit, because only the ratio matters1
P2Radiant power of line 2arb. units0 switches line 2 off; never a luminance1

How to use the purple wavelength calculator

  1. Check the question first. This page answers two things: whether a colour has a wavelength at all, and what number to report when it does not. It is not a converter — for the frequency and energy of one line on its own, the photon energy calculator is the shorter route, and the relation between wavelength and frequency belongs to the wavelength formula and units guide rather than to this page.
  2. Enter line 1. A wavelength from 380 to 700 nm. The unit menu also takes the same line as a frequency in THz or a photon energy in eV, so the 405 nm diode may be entered as 3.061 eV instead.
  3. Enter line 2, or clear it. A blank box, or a line 2 radiant power of 0, is the single-wavelength case. The verdict is then always spectral hue and the dominant wavelength is the line itself — which is the direct answer to whether a given wavelength is violet or purple.
  4. Enter the two radiant powers. Any arbitrary unit, because only the ratio moves the colour: 1 and 1 is equal radiant power, not equal brightness. The chip power ratio P2 over P1 shows the ratio the arithmetic actually used.
  5. Read the verdict before the headline. spectral hue means the headline is a dominant wavelength; non-spectral (a purple) means it is a complementary wavelength and the colour has no wavelength of its own. Reading the number without the label is exactly the mistake this page exists to stop.
  6. Read the number to report. The chip writes it the standard way: 566c nm for a purple, 579 nm for a spectral hue. Everything is to the nearest 1 nm, and x and y to 4 decimal places.
  7. Use the crossover chip for the threshold. Read it before you start moving powers about: it already knows where that pair of lines turns, whatever ratio you happen to be sitting on. Push the ratio far enough the other way and the mix closes on the stronger line and turns back, so the working names both ends of the window rather than one threshold. Some pairs never turn at all, and it says so in words instead of inventing a figure.
  8. Check the lines themselves. The frequency and energy chips restate each line as f = c / λ and E = 1239.84 / λ eV; the first of those is a readout here and is never derived, and the wave speed calculator is where it is rearranged for a wave of any speed. The violet band chip puts line 1 against the published 380 to 435 nm band, which describes the line you typed and not the colour it mixes to.
  9. Open Show working. It gives the construction in words, both sets of tabulated colour-matching values, the tristimulus sum, the chromaticity, which part of the perimeter the half-line left by, and the number to report. Each printed operation reproduces the next, so the chain can be checked by hand.
  10. Expect a refusal where there is nothing to classify. Both powers at 0 is no light rather than a dark colour, so the panel refuses in words instead of printing a false 0 or a false 0.3333. A negative power, and anything outside 380 to 700 nm, are refused the same way.

One neighbouring idea is worth separating from this one before you start. What comes back here for a colour is a pair of coordinates, and the pair is what cannot be collapsed into one figure — the guide to the light scale and colour temperature owns the temperature side of the same diagram, where that collapsing goes wrong; this page owns the edge of it, the locus and the line of purples.

The other is the prism. Violet bends most and purple never appears in a prism spread at all, which is not a coincidence: a prism spread is the spectral locus, so anything missing from the locus is missing from the rainbow. The dispersion of light guide covers that spread, and the dispersion of light simulator lets you watch it happen.

Purple wavelength calculator on its defaults: line 1 at 450 nanometres and line 2 at 650 nanometres, both at a radiant power of 1 in arbitrary units, return a headline of 566 c nm labelled complementary wavelength, with chips reading verdict non-spectral (a purple), number to report 566c nm, chromaticity x 0.2443, chromaticity y 0.0572, power ratio P2 over P1 1.0000, crossover power ratio 0.3084, line 1 frequency and energy 666.2 THz and 2.755 eV, line 2 frequency and energy 461.2 THz and 1.907 eV, and violet band check not violet because 450 nanometres is past the 435 nanometre violet edge.
The page as it opens: λ1 = 450 nm and λ2 = 650 nm at equal radiant power. Both readouts carry the c: the headline unit spells it c nm and the chip closes it up as 566c nm, because the suffix is part of the figure rather than a note about it.

Worked example: change one thing at a time

The table holds line 1 at 450 nm, line 2 at 650 nm and the line 1 radiant power at 1, and moves the line 2 radiant power alone. Every cell was read out of the running widget rather than worked out by hand. Where a cell and the tool ever part company, believe the tool.

What the calculator reports for 450 plus 650 nm as the second line's radiant power changes
P2 over P1 (radiant) x y Verdict Number to report
0.0000 0.1566 0.0177 spectral hue 450 nm
0.2500 0.1814 0.0289 spectral hue 426 nm
0.3084 0.1869 0.0313 spectral hue 380 nm
0.3085 0.1869 0.0313 non-spectral (a purple) 570c nm
1.0000 0.2443 0.0572 non-spectral (a purple) 566c nm
4.0000 0.3965 0.1257 non-spectral (a purple) 536c nm
16.0000 0.5804 0.2085 non-spectral (a purple) 498c nm
64.0000 0.6810 0.2537 non-spectral (a purple) 495c nm

Three things are worth reading off that table. The first row has line 2 switched off, so the answer is simply the 450 nm line, which is what every single wavelength does here. By a quarter of the red power the mix is still a spectral hue, but its dominant wavelength has already run down to 426 nm — shorter than either line, because the chord from blue to red cuts across the violet corner.

The two middle rows are the whole point of the page. At a ratio of 0.3084 the hue still has a wavelength and that wavelength is 380 nm, the very end of the locus; one part in ten thousand more red, at 0.3085, and there is no wavelength to have — the figure becomes 570c nm. The chromaticity is 0.1869, 0.0313 in both rows, which is why a verdict cannot be eyeballed off four decimal places.

After that the complementary wavelength walks steadily down the green and yellow arc as the red power rises: 566c at 1, 536c at 4, 498c at 16 and 495c nm at 64. The crossover chip reads 0.3084 in every row of the table, because it is a property of the pair and not of the ratio you happen to be at.

Formula and symbol reference

Variables and constants used by the purple wavelength calculator
Symbol What it is Unit On this page
λ1 The first spectral line. A single wavelength, not a band nm Box menu reads nm, THz or eV, so one line may be typed three ways. 450 nm is the default; the accepted range is 380 to 700 nm.
λ2 The second line. Blank, or at zero radiant power, means one line only nm Same three-unit menu. 650 nm is the default. Clear this box and the page answers the single-wavelength question instead.
P1 The radiant power of line 1, in any arbitrary unit. Never a luminance arb. units 1 is the default. Only the ratio of the two powers changes the colour, so 1 and 1 is equal radiant power and 1000 and 1000 gives the identical answer.
P2 The radiant power of line 2. Zero switches line 2 off arb. units 1 is the default. Both powers at 0 is the one state with no answer at all, and the panel says so rather than printing a number.
x, y The chromaticity coordinates the verdict is computed from dimensionless Printed to 4 decimal places. 0.2443 and 0.0572 at the page defaults.
x-bar, y-bar, z-bar The three colour-matching functions, one tabulated row per nanometre dimensionless 321 rows, 380 to 700 nm. At 450 nm they are 0.3362, 0.0380 and 1.7721 at the 4 decimal places this page quotes; the working shows more, because it is reproducing its own arithmetic.
E Illuminant E, the equal-energy white point: the origin of the half-line dimensionless Fixed at (0.3333, 0.3333), which is exactly x = 1/3, y = 1/3. It is not an input.
dominant λ Where the half-line from E leaves the spectral locus. Exists only for a spectral hue nm Headline when the verdict is spectral hue: 579 nm for the 480 plus 580 nm control, to the nearest 1 nm.
complementary λ Where the REVERSED half-line leaves the locus. This is the number to report for a purple c nm Headline when the verdict is non-spectral (a purple): 566c nm at the page defaults. The c is part of the figure.
crossover ratio The radiant power ratio at which that pair stops having a wavelength dimensionless A chip, not an input: 0.3084 for 450 plus 650 nm, 0.0008 for 405 plus 650 nm, and none at all for 480 plus 580 nm.
c The speed of light, exact by definition, used as f = c / λ nm THz 299792.458 with the wavelength in nm and the frequency in THz: 450 nm is 666.2 THz, and 380 and 435 nm are 788.9 and 689.2 THz.
hc The photon-energy constant, from the SI defining values of h, c and the elementary charge eV nm 1239.84 with the wavelength in nm: 405 nm is 3.061 eV, 450 nm is 2.755 eV and 650 nm is 1.907 eV.

The physics: why a purple has no wavelength

Every colour a single wavelength can make lies on one curve, the spectral locus, and that curve does not close. Joining its two ends — 380 nm at (0.1741, 0.0050) and 700 nm at (0.7347, 0.2653) — takes a straight chord, the line of purples, which is the only stretch of the boundary that no lamp of one wavelength can reach. Purple is that edge.

The construction turns that geometry into a number. Draw a half-line from the equal-energy white point through your colour and extend it until it leaves the diagram: if it leaves by the locus, the wavelength at the exit is the dominant wavelength, and if it leaves by the line of purples there is no wavelength there to read. In the second case the same line is run backwards through the white point instead, and the wavelength it meets on the locus is reported as the complementary wavelength.

Mixing is what puts a colour inside the boundary rather than on it. Two lines at radiant powers P1 and P2 add their tristimulus values, so the mix sits on the straight chord between the two spectral points and always strictly between them. That is why a mixture can never be more saturated than what it is made of, and why its position depends only on the ratio of the powers.

The trap this page is really built to kill is averaging the wavelengths. You can watch it fail in two runs: type the mean of two lines in on its own and the page returns a green with a dominant wavelength, then type the two lines back in and it returns a purple with none. Averaging wavelengths is not averaging colours, and the FAQ below puts the two chromaticities side by side.

Where the hue stops having a wavelength is a sharp threshold, and it is the one quantity on this page that no other calculator exposes. As the red power rises the exit point slides along the locus towards 380 nm, reaches the end of it, and from there on the half-line leaves by the chord instead, for ratios within the purple window that opens at that threshold. At that moment the hue is the 380 nm violet endpoint itself, which is why the complementary wavelength just past the threshold is about 570c nm for every pair the chip has been run on. That window has a far edge as well: raise the ratio further and the exit travels along the chord from the 380 nm corner towards the 700 nm corner, and a mix red enough to reach that far corner reads as a spectral red once more, which is why the verdict chip is recomputed at every ratio rather than carried over.

The verdict across four different pairs, each at a line 1 radiant power of 1
Pair (nm) P2 over P1 x y Verdict Number to report Crossover ratio for the pair
450 + 650 0.2500 0.1814 0.0289 spectral hue 426 nm 0.3084
450 + 650 0.3085 0.1869 0.0313 non-spectral (a purple) 570c nm 0.3084
450 + 650 1.0000 0.2443 0.0572 non-spectral (a purple) 566c nm 0.3084
450 + 650 4.0000 0.3965 0.1257 non-spectral (a purple) 536c nm 0.3084
405 + 650 1.0000 0.5847 0.2052 non-spectral (a purple) 498c nm 0.0008
480 + 580 1.0000 0.3569 0.3558 spectral hue 579 nm none: this pair is spectral at every ratio

The last row is the control, and it is what makes the verdict mean anything. Read along it: 579 nm in the answer column with no c on it, and a crossover column reporting no threshold at any ratio. The 405 nm row above is the opposite extreme — a line that close to the end of the locus turns at 0.0008.

Purple wavelength calculator on the single-line preset: line 1 at 405 nanometres, the line 2 box cleared and its radiant power at 0, return a headline of 405 nanometres labelled dominant wavelength, with chips reading verdict spectral hue, number to report 405 nm, chromaticity x 0.1730, chromaticity y 0.0048, power ratio P2 over P1 0.0000, crossover power ratio not applicable because there is one line only, line 1 frequency and energy 740.2 THz and 3.061 eV, line 2 frequency and energy no second line, and violet band check violet because 405 nanometres is inside the published 380 to 435 nanometre band.
The single-line preset, which is the literal question: line 2 cleared, 405 nm on its own, headline 405 nm with no c. Watch the crossover chip — it reads not applicable: one line only rather than inventing a threshold.

Where the purple wavelength calculator breaks down

Two lines, and a real source is not two lines
This page mixes exactly two monochromatic lines. A real LED, phosphor or display primary has a spectral width, and a real purple on a screen is three primaries rather than two, so a measured spectrum has to be integrated against the colour-matching functions before any of this applies. The geometry is identical — the result still lands inside the perimeter and the same half-line still decides the verdict — but the chromaticity of a broad source is not the chromaticity of a two-line stand-in for it.
The band is 380 to 700 nm, and that is measured rather than chosen
Beyond 700 nm the tabulated observer has nothing distinct left to aim at: every wavelength from 700 to 830 nm has the same chromaticity to six decimal places, 0.734690 and 0.265310, because the z function is exactly zero there and the ratio of the other two stops moving. Those rows are one point with many labels, not many colours, and a half-line cannot be aimed at a point that stands for all of them. A wavelength outside the band is refused in words rather than guessed at.
A dominant wavelength below about 420 nm is coarse, and the page says so
The locus moves 4.173e-5 in the chromaticity plane per nanometre between 380 and 400 nm, against 1.612e-2 between 500 and 520 nm — 386 times worse conditioned. Carried through to the readout, a slip of 1e-4 in x or y costs 2.40 nm of answer in the deep violet against 0.01 nm in the green, which is why the working attaches a warning to anything it returns below about 420 nm. The figure is still the best one available; it is a band rather than a point.
One hue boundary only, and no invented ones
The violet band chip uses the published 380 to 435 nm, which pairs with 790 to 690 THz and which this page reproduces as 788.9 and 689.2 THz. No edge is asserted for blue, green, yellow or red, because no such edge is sourced here and a hue name is a perceptual judgement rather than a measurement. So a 450 nm line reads as not violet on this page even though plenty of catalogues would call it violet, and where violet ends at the short end is the ultraviolet radiation guide's ground, not this one's.
Radiant power in, and exactly one luminance figure out
Every power box is radiant, and the one place brightness enters is as an explanation: the luminous efficiency function is the same y function as the colour data, normalised to unity at 555 nm, and at 405 nm it is 6.400e-4, so a 405 nm beam needs 1562 times the radiant power of a 555 nm beam to look equally bright. That is why a real violet laser looks faint, and it is also why equal radiant power at 450 and 650 nm is a luminance split of 26.2 to 73.8 per cent. Neither figure is returned anywhere on the panel: there is no luminance box and no luminance chip, so a brightness question has to be taken elsewhere.
A complementary wavelength is not the purple's wavelength
The figure 566c nm describes the colour; it is not made of 566 nm light and no 566 nm light looks like it. It is the wavelength that cancels the colour to white, which is why it is written with a c and why this page never calls it a purple's wavelength. Quoting it without the c turns a correct answer into a wrong one.

Where this calculator is actually used

Settling whether a "purple" laser or LED is really violet
Clear the line 2 box, put the diode's line into line 1, and two chips settle the argument between them: verdict comes back spectral hue, and violet band check says which side of the published edge the line falls on. The frequency and energy chip adds 740.2 THz and 3.061 eV for a 405 nm line, which is what a datasheet can be checked against. Nothing you do to either radiant power box can turn a one-line verdict into a purple.
Specifying a purple by a number instead of a name
Give a supplier "purple" and you have said nothing. What this page hands you instead is three figures that travel: a verdict, a chromaticity pair and one wavelength with a c on it, and the worked table above shows how far the third of them moves when the ratio does. The same construction is what a published two-photon-vision study used to report its own non-spectral results, which is the nearest thing to an outside check on the method.
Finding the ratio at which a violet mix becomes a purple
This is the crossover chip, and it is the quantity none of the ranking tools on this topic exposes. For 450 plus 650 nm it is 0.3084; for 430 plus 630 nm, 0.0290; for 470 plus 620 nm, 0.2601; and for 405 plus 650 nm, 0.0008, so a thousandth of the violet power in red is already enough. With the red line held fixed, the further the short line sits towards the 380 nm end of the locus the less red it takes; the four figures above do not show that on their own, because the 470 nm row is paired with 620 nm rather than 650 nm.
Knowing when a two-line mix is NOT a purple
Load the control preset and the crossover chip reports no crossover at any ratio, which is the one reading on this page that rules something out rather than returning a number. Use it as a check on an intuition before you reach for a ratio at all: a pair has to straddle the quiet middle of the spectrum before anything non-spectral can come out of it. The electromagnetic spectrum simulator is where the band each line sits in can be seen in context.
Checking a figure somebody else has quoted
If a source gives purple a single wavelength, it is wrong, and this page shows why in one click: the wavelength it quotes will come back as a spectral hue with that wavelength as its dominant one, which is a violet, a blue or a red rather than a purple. If a source gives magenta a wavelength near 566 nm without a c, it has copied a complementary wavelength and dropped the one character that made it true. That second failure is common enough to be worth reading about: the purple wavelength guide takes the usual quoted figures apart one at a time.
Purple wavelength calculator on the control preset: line 1 at 480 nanometres and line 2 at 580 nanometres, both at a radiant power of 1 in arbitrary units, return a headline of 579 nanometres labelled dominant wavelength, with chips reading verdict spectral hue, number to report 579 nm, chromaticity x 0.3569, chromaticity y 0.3558, power ratio P2 over P1 1.0000, crossover power ratio none because this pair is spectral at every ratio, line 1 frequency and energy 624.6 THz and 2.583 eV, line 2 frequency and energy 516.9 THz and 2.138 eV, and violet band check not violet because 480 nanometres is past the 435 nanometre violet edge.
The control preset: 480 and 580 nm at equal radiant power. No c on the headline, because this mixture does have a wavelength — 579 nm, labelled Dominant wavelength — and the crossover chip says why no ratio would change that.

Where to go next

For the mechanism in prose — the short and long cones with the middle of the spectrum quiet, the diagram drawn out, and a full set of worked problems — read the purple wavelength guide, which this tool is the arithmetic half of. The dispersion of light guide covers the prism spread that purple is absent from, the wavelength formula and units guide covers the relation between wavelength and frequency, and the light scale guide covers the other half of the same diagram.

Four tools sit beside this one. 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 Wien's law calculator gives the peak wavelength of a hot body. The physics lab library and the calculator index are open too.

Frequently asked questions

What is the wavelength of purple?

Purple has none, and that is not a limitation of the measurement. Nothing you can put into a single line comes back as a purple here, because the colours one wavelength can make are exactly the curve the verdict is measured against, and purple is off it. What it does have is a standard numeric descriptor, the complementary wavelength, which this page computes: equal radiant power at 450 and 650 nm reports 566c nm.

What does the c in 566c nm mean?

It marks the figure as a complementary wavelength rather than a wavelength. The construction draws a half-line from the equal-energy white point through the colour; for a purple that line leaves the diagram on the line of purples, where there is no wavelength, so the same line is run backwards instead and the wavelength it meets on the spectral locus is reported with a c. A 566c nm purple is not made of 566 nm light and no 566 nm light looks like it: 566 nm is the wavelength that cancels it to white.

Is violet the same thing as purple?

No, and the two states of this panel are the quickest way to tell them apart. Clear line 2 and the verdict chip can only come back spectral hue, with the line itself as the dominant wavelength and the violet band chip saying whether that line falls inside the published 380 to 435 nm band. Put a short line and a long line in together and push the second radiant power up, and the same chip flips to non-spectral (a purple) with no dominant wavelength left to return.

Is a 405 nm purple laser really violet?

Yes, and this panel cannot return anything else for it. Leave line 2 empty, type 405 into line 1, and the verdict comes back spectral hue at 3.061 eV with the violet band chip putting that line inside the published 380 to 435 nm band. A catalogue name is not one of the four inputs here: all the page reads is two wavelengths and two radiant powers.

If purple is red plus blue, why is the answer not green?

Because averaging two wavelengths is not averaging two colours. The arithmetic mean of 450 and 650 nm is 550 nm, and this page puts the single wavelength 550 nm at x = 0.3016, y = 0.6923, which is a green; the actual mixture of those two lines lands at x = 0.2443, y = 0.0572, which is a purple. The two points are at opposite ends of a plane whose whole gamut spans about 0.8, so the mean-wavelength answer is not a rounding error but a different colour entirely.

Does mixing two wavelengths always give a purple?

No, and the chip that settles it is the crossover one rather than the verdict. Load the control preset and the crossover chip reports no crossover at any ratio at all, which is a statement about that pair of lines and not about the ratio you happen to be sitting on. Push the line 2 power up without limit underneath it and the verdict holds, because the chord between those two lines never comes near the line of purples.

Why does the band stop at 700 nm?

Because a line past 700 nm has nothing distinct for the half-line to aim at, so the panel refuses it in words rather than returning a figure it cannot stand behind. The far end of the tabulated observer is a stack of colours that share one point, and a construction built on points like that would be intersecting edges of zero length. The limits list below gives the measurement that settles where to stop, and 380 to 700 nm is also the visible band this page sources.

Why is the dominant wavelength given only to the nearest nanometre?

Because a tenth of a nanometre is more than the construction can carry at the violet end. The chromaticity it is computed from is given to 4 decimal places, and the last of those places is worth a whole band of wavelengths down there against almost nothing in the green. The limits list below has the measured figures, and the working warns you itself on any answer below about 420 nm.

Why are the inputs radiant power and not brightness?

Because tristimulus values add in radiant terms, so radiant power is the quantity the construction needs rather than a convenience. It also changes the answer the panel gives: the 450 plus 650 nm crossover chip reads 0.3084 as a radiant power ratio, where the same threshold expressed as a luminance ratio would be 0.8685, a factor of 2.82 away. Type a brightness ratio into boxes labelled radiant and the crossover you went looking for is in the wrong place.

References & formula source

  • The construction on this page is the standard one: a half-line is drawn from the white point through the chromaticity and extended to the perimeter of the diagram, where the perimeter is the spectral locus or the line of purples. An exit on the locus gives the dominant wavelength; an exit on the line of purples means there is no dominant wavelength and the complementary wavelength is used instead, read off where the reversed half-line crosses the locus.
  • The white point is illuminant E, the equal-energy white at x = 1/3, y = 1/3: light with a flat power spectrum in terms of wavelength corresponds to that point. The same construction against a white point at 0.33, 0.33 is used in the published two-photon-vision study cited below, which reports complementary wavelengths precisely because its coordinates are spread along the non-spectral purple line between red and blue, where a dominant wavelength does not exist.
  • The colour-matching data are the CIE 1931 2-degree standard observer tabulated at 1 nm, carried on this page for 380 to 700 nm and interpolated linearly between rows. The copy used was validated before use against four independently published chromaticities - 0.1741 and 0.0050 at 380 nm, 0.0743 and 0.8338 at 520 nm, 0.6658 and 0.3340 at 610 nm, 0.7347 and 0.2653 at 700 nm - against the equal-integral construction of the three functions, and against the normalisation that puts the y function at exactly 1.000000 at 555 nm.
  • The analytic multi-lobe approximation to those same functions is deliberately not used for the perimeter. It approximates the function values well, but a chromaticity is a ratio and at both band edges all three functions are about 1e-3, so the ratio is cancellation residue used as a denominator: at 380 nm the fit gives x = 0.0285, y = 0.0354 where the table gives 0.1741 and 0.0050. The fitted locus also folds back on itself along the red tail, and on the fit a 405 nm line classifies as non-spectral, which is false.
  • Where the band ends was measured rather than chosen: a sweep of the whole table for neighbouring rows closer together than the 1e-6 tolerance the guards use finds 131 consecutive 1 nm pairs, every one past the red end of the span this page accepts. The same 380 to 700 nm span is the visible band given by the NASA reference below.
  • Three guards are implemented because each is a measured failure rather than a precaution. A query point within 1e-6 of a tabulated locus vertex is reported as that spectral colour, because ray casting is ill-conditioned for a point sitting on the perimeter - the far-red tail carries rounding noise, so 699 nm sits 3e-8 outside the 698 to 700 chord and a deep red would otherwise classify as a purple. Coincident vertices are merged for the same reason, and both radiant powers at zero is refused in words instead of being printed as 0 or as the white point.
  • That a single wavelength is never a purple is held in place by a regression over the whole band rather than quoted from elsewhere, and it is the test the analytic approximation failed. Both endpoints are included on purpose, because they are where ray casting is least reliable.
  • What the readout may print was fixed by measuring the locus rather than by picking a house style: the two arc lengths behind it were taken at each end of the curve by the independent reference run for this page, and are quoted once, in the limits list above. A purple is the easy case either way, because its complementary wavelength is read off the green and yellow arc, the best-conditioned stretch of the curve.
  • Both power boxes are labelled in arbitrary units because only their ratio reaches the arithmetic, and labelled radiant because the same mixture carries a different ratio in the other unit system. The luminous efficiency function that defines that other system is the same y function as the colour data here, normalised to unity at 555 nm, so each of the two brightness figures quoted once above was read out of the one validated table rather than brought in from a second source. Both are explanations of a readout and neither is one.
  • The frequency of each line is f = c divided by the wavelength with the speed of light exact by definition, and the photon energy is 1239.84 eV nm divided by the wavelength in nanometres, that constant being derived from the SI defining values of the Planck constant, the speed of light and the elementary charge. The violet band used for the single-line check is the published 380 to 435 nm, which pairs with 790 to 690 THz; this page reproduces that pairing as 788.9 and 689.2 THz. No other hue boundary is asserted anywhere on this page, because no other one is sourced.
  • Every chip reading, every table cell and every worked figure on this page is a string this calculator printed for the inputs named beside it, captured in the cluster test log. The preset states are stated givens chosen to make a point - a 450 and 650 nm pair, a 405 nm diode line, a 480 and 580 nm control - and are not measurements of any named lamp, laser or display.
  • Emmerich et al., Seeing nonspectral colors with single wavelength stimulation in two-photon vision, Biomedical Optics Express 2025, volume 16 issue 11, pages 4767-4776, doi 10.1364/BOE.575139.
  • NASA Science, Visible Light, which puts the visible band at 380 to 700 nm.
  • Further reading: Dominant wavelength — Wikipedia

Embed this calculator

Add this free Purple Wavelength calculator to your own website — copy the snippet below.