huebic
Tools / Analyse

Gamma Explorer

Gamma decides how a code value such as 128 turns into light. When content is made for one gamma and shown on another — sRGB on an old 1.8 Mac, video at 2.4, an LED controller at 2.8 — midtones get lighter or darker and mixed colors change hue. Pick both sides and see what happens to your color, a set of ramps and any image. Theory: RGB, primaries and gamma →

Setup
Content made for
Shown on a display at
Transfer curvescode value → light
Dashed: what the content expects. Solid: what the display does. Dots: your color's R, G and B.
Your colors

Rampstop: as intended · bottom: as shown
Imagetest chart
As intendedAs shown
Drag across the image to move the split. Drop or paste an image too — it never leaves your device.
How it workswhy the same numbers can look different

What gamma is

A color in a file is stored as numbers, for example 128 out of 255. That's not the amount of light. Gamma is the curve that turns the number into light, and on a normal screen 128 gives only about a fifth of full brightness, not half.

That's on purpose: our eyes are much more sensitive to differences in dark tones, so the numbers are spent where we notice them.

When it goes wrong

Trouble starts when something is made for one curve and shown on another. Midtones come out too light or too dark, and mixed colors such as skin tones and oranges shift in hue.

Set what the content was made for and what it's shown on, and everything on the page shows the difference. Typical cases: web images on an old Mac (1.8), video on a TV (2.4), or colors sent to an LED controller (often 2.8, or no curve at all).

The L* curve and density

Besides gamma numbers there is L*: a curve that spaces the code values evenly in how light they look (CIE lightness), so 128 is exactly the middle grey to the eye. Print and prepress spaces such as eciRGB v2 use it. It sits close to gamma 2.2 but is straighter in the shadows.

Density is how printers and photographers measure tones: D = −log₁₀ of the light, so white is 0, a tone that lets 10% of the light through is 1, and 1% is 2. Switch the curve chart to Density to see the curves the way a densitometer would, and the Your colors table gives each color's density.

What the panels show

Transfer curves: the dashed line is what the content expects, the solid line what the display does. The further apart, the bigger the change. Your colors shows your foreground or background as intended and as it would actually appear.

Ramps put the intended version on top and the result below, so you can see exactly where it drifts. Image does the same for a test chart or any picture you open; drag the divider to compare.

For LED projects

Many LED controllers turn the number straight into light, with no curve. Send them ordinary web colors and the midtones come out far too bright and washed out.

To see it, go to Setup and set Content made for to sRGB (that's what web colors are) and Shown on a display at to 1.0 (a controller with no curve). Look at the Ramps: the bottom row is what your LEDs would show.

The fix is a correction table in the controller or in your own code: for every color value it gives the LED level that looks right. With those two settings, press Download curve under the Transfer curves. You get a ready-made table as a C / Arduino array (for FastLED, ESP32 and the like), a CSV or JSON file. Choose 12 or 16-bit output if your LED driver supports it: dark tones stay smoother.