People ask me this a lot, usually after seeing one of my nebula photos. "Are those colors real?" It's a fair question, and the honest answer is: it depends on what you mean by real.
Here's the short version. Nebulae are clouds of gas and dust scattered across space, and different gases glow in different colors when energized by nearby stars. Hydrogen tends to glow red. Oxygen glows blue-green. Sulfur produces a deep red, slightly different from hydrogen. These aren't arbitrary — each gas emits light at a specific wavelength, as reliable as a fingerprint. If you could float inside a nebula with your eyes fully adjusted, you'd see color. Just not necessarily the colors in my photos.
Where It Gets Interesting
To capture narrowband images, astrophotographers use specialized filters that block out almost everything except the specific wavelength emitted by one gas at a time. We're talking about hydrogen-alpha (Ha), oxygen-III (OIII), and sulfur-II (SII). Each filter isolates one signal. You end up with three separate grayscale images — one for each gas — and then the real decisions begin.
How you combine those three channels determines what your final image looks like. And this is where astrophotography starts to straddle the line between science and art.
The Hubble Palette (SHO)
Many of NASA's most recognizable Hubble Space Telescope images — the ones that end up as desktop wallpapers and magazine covers — use what's called the SHO palette. The name tells you the assignment: Sulfur → red, Hydrogen → green, Oxygen → blue. This is a false-color technique, meaning the colors in the final image don't represent what your eye would see. They represent which gas is where.
The famous "Pillars of Creation" in the Eagle Nebula uses this palette. Those golden-orange columns aren't golden-orange in any literal sense — that's sulfur, rendered in a color our eyes can distinguish and our brains find striking.

Here's my own image of the Soul Nebula (IC 1848) — broadband on the left, SHO palette on the right. Notice how the SHO version dramatically separates the gas structures, pulling out sulfur-rich regions in red-gold and making the oxygen boundaries glow distinctly blue.
HSO and HOS — Variations on a Theme
HSO and HOS are less common but worth knowing. Both still use all three narrowband channels; they just shuffle which channel goes to which color. HSO puts Hydrogen in red, Sulfur in green, and Oxygen in blue — giving a slightly different color separation than SHO, with sulfur showing as an earthy green rather than deep red. HOS puts Hydrogen in red, Oxygen in green, and Sulfur in blue — often producing electric blue and violet tones wherever sulfur is present.
Here's the Rosette Nebula (NGC 2244) — broadband on the left, HSO on the right:
Hubble also captured a portion of the Rosette in detail — note how the palette used here brings out the hydrogen/oxygen interface along the pillar edges in a way broadband simply can't resolve:

And the Wizard Nebula (NGC 7380) — broadband vs. HOS:
So Are the Colors "Real"?
The colors are real representations of real data. The gas is really there. The emissions are really happening. The color assignments are a choice — a translation from wavelengths our cameras can detect into colors our eyes can appreciate. Think of it like a map. A map isn't the territory, but a good map tells you something true about it.
When I process one of my nebula images, I'm making decisions at every step — which palette, how much to stretch the data, where to draw out faint detail and where to let the darkness stay dark. For my own images, I try to stick with the colors my telescope's sensor actually captures. Both of my scopes — a ZWO Seestar S30 and Seestar S50 — have a built-in narrowband filter I typically use for nebulae and an IRCUT filter for galaxies. If I've used a special palette, I'll say so in the caption.
So in a nutshell–the colors are as real as the data, but the way we choose to represent that data is a creative decision. And that's part of what makes astrophotography so fascinating — it's where science meets art, and every image is a unique interpretation of the cosmos.