Why the spark in a lighter is blue and can it be white as a lightning is? Is lightning white due to moving electrons or nearby nitrogen,oxigen and water vapour atoms and can a simple lighter spark glow white?
 A: I'll assume you're talking about eletric lighters.
In both cases the air ionizes and what you see is a plasma.
Now the color blue/purple makes sense for the energy and the oxygen/nitrogen.
Can it be white, that's a bit more difficult to answer.
Let's start with why lightning is white, Lightning is also a plasma and white doesn't make that much sense based on the air composition. It's white because of the extremely high temperature/energy density and it's especially white when there's low air humidity (less contamination, higher temp). It's not actually white, it actually radiates all colors in the visible spectrum that humans than perceive as white (similar to blackbody radiation).
This video, https://youtu.be/VXm3zDM_v80 actually shows the spectrum and the actually color of lightning simultaneously, the ball on the left is the actual color, and the spectrum/line on the right is the lightning split up over the different colors in the visible spectrum.
So can a lighter give a white plasma spark, questionable, I don't know what temperature you would exactly need to reach white and thus this temperature/energy-density might be unreasonable to achieve in a simple lighter.
Some more indications as what the colors (tinged) of lightning usually indicate.
https://www.wfmz.com/news/what-color-is-lightning/article_b65b63c8-7cd1-56d0-b909-88ac635edc8b.html
This scientific paper actually tries to estimate the temperature of ligthning based on the plasma generated https://www.researchgate.net/publication/320656562_Calculating_the_electron_temperature_in_the_lightning_channel_by_continuous_spectrum
Peak temperature is about 25 000K (Kelvin or Celsius doesn't matter much at those temperatures). For Refercence, the SURFACE of the sun is about 5500K to 6000K
If you want to see some (crazy) smart guy generate white plasma (and other colors)
https://youtu.be/UNisqZOAaAs
