This color is due to the presence of ionized oxygen within the nebula, which emits strongly in the green part of the spectrum.
It's important to note that the color of celestial objects can vary depending on the type of light being observed. For example, NGC 2440 appears more reddish in infrared light, highlighting the presence of warm dust.