Three Sliders, Three Curves — A Colour Adjust Lab Notebook
The Colour Adjust page on this site does something most tool pages do not: it prints the actual maths behind each slider. Brightness adds a constant to every RGB value; contrast uses new = factor × (old − 128) + 128; saturation computes luma as 0.299R + 0.587G + 0.114B and pushes colour away from or toward that grey point; sharpening uses an unsharp mask, original + (original − blur) × strength.
Those four lines are enough to predict nearly every "why did my photo go wrong" complaint. This lab notebook works the formulas through, compares them against a synthetic test chart, and gives you a table you can recompute yourself. No stock photos, no vague "adjust to taste" advice — just numbers from the tool's own implementation.

The test chart
The tone chart is drawn for this purpose: a vertical gradient from dark blue to bright orange, six grey patches at 12 / 45 / 90 / 140 / 190 / 235, a red block, a green triangle and a yellow disc. Every element has a known input value, so a change is measurable rather than a matter of opinion. The JPEG version is there to compare re-encode effects separately from slider effects.

Brightness is a translation, and translations clip first
Brightness adds the same amount to every channel of every pixel. The slider runs from −100 to +100 and the tool multiplies it by 2.55, so a slider value of +16 shifts every channel by about +40 levels. With that shift, an input value x becomes x + 40, clamped to 0–255. That is a straight line shifted upward by 40 — the blue line in the figure.
The consequence is arithmetic, not taste: every input value from 215 upward becomes 255. A highlight at 220 and a highlight at 250 both end up at 255, and the difference between them is gone permanently. That is why a brightened sky turns into a flat white band. The shadows survive intact — an input of 10 becomes 50 — which is why brightness feels "safe" at first and then ruins only the top of the image.
Exact clip point: 255 − 40 = 215. For any brightness +b, values above 255 − b are lost. For −b, values below b are crushed to black.
Contrast is a rotation around 128, and it clips at both ends
Contrast uses new = factor × (old − 128) + 128, where the slider value c sets factor = 259(c + 255) / (255(259 − c)). A slider of +42 gives factor ≈ 1.4, the value used below. The pivot is 128: mid-grey does not move at all. Values above 128 are pushed further up; values below 128 are pushed further down. With factor = 1.4, the line is steeper than identity — the pink curve in the figure.
Solve the two inequalities and you get both damage zones:
1.4(x − 128) + 128 ≤ 0→x ≤ 36.6, so inputs 0–36 are crushed to black.1.4(x − 128) + 128 ≥ 255→x ≥ 218.7, so inputs 219–255 are clipped to white.
So contrast at 1.4 destroys about 14% of the tonal range at the bottom and 14% at the top, while leaving 128 untouched. Brightness +40 destroys only the top 16%. This is the concrete answer to "why does contrast blow out my highlights but brightness does not feel as bad": contrast attacks both ends simultaneously, and it does so while the midtones look unchanged, so the damage is less obvious until it is done.
The practical rule: raise contrast in small steps and watch the darkest grey patch (12) and the brightest one (235). On our chart, patch 12 goes to 0 and patch 235 goes to 255 at factor 1.4 — both patches stop being distinguishable from their neighbours. That is a visible, checkable failure, not a subjective one.
Gamma is a power curve, not a shift
Gamma (labelled "midtones" on our panel) applies 255 × (x/255)^(1/γ). With γ = 1.4, the exponent is about 0.714. Unlike brightness, gamma leaves 0 at 0 and 255 at 255 — the endpoints are pinned — and lifts everything in between. That is why it is described as "more natural than brightness": it never clips a clean white or crushes a clean black, it redistributes the middle.
From the table, input 128 becomes about 156, while input 224 becomes about 233 (not 255). No information is thrown away at the extremes. The trade-off is that gamma changes the relationships between midtones non-linearly: it is not a simple "make it brighter".
The recomputable table
Every number below comes from the three formulas above. You can verify any cell with a calculator; that is the point of publishing a table instead of a verdict.
| Input x | Brightness +40 | Contrast 1.4 | Gamma 1/1.4 |
|---|---|---|---|
| 0 | 40 | 0.0 | 0.0 |
| 32 | 72 | 0.0 | 57.9 |
| 64 | 104 | 38.4 | 95.0 |
| 96 | 136 | 83.2 | 126.9 |
| 128 | 168 | 128.0 | 155.9 |
| 160 | 200 | 172.8 | 182.8 |
| 192 | 232 | 217.6 | 208.2 |
| 224 | 255 | 255.0 | 232.5 |
| 255 | 255 | 255.0 | 255.0 |
Read the rows at 32 and 224 together. Brightness keeps both (72 and 255, though 224 has already clipped); contrast destroys both (0 and 255); gamma keeps both (57.9 and 232.5). If you remember one thing from this notebook, remember that trio.
Order matters, and the page does not hide it
The sliders are applied in one pass by the tool, but the order you *reason* about them still matters when you export, re-open and adjust again. Consider a pixel at 200.
- Contrast 1.4 first, then brightness +40:
1.4(200−128)+128 = 228.8, then268.8 → 255. - Brightness +40 first, then contrast 1.4:
240, then1.4(240−128)+128 = 284.8 → 255.
Both clip here, but the intermediate values differ, and for values near the pivot the final results differ too. At 160: contrast-then-brightness gives 172.8 + 40 = 212.8, brightness-then-contrast gives 1.4(200−128)+128 = 228.8. Same two operations, different output. Any guide that says "apply contrast then brightness" without giving the formula is guessing.
The safe workflow is to do all adjustments in a single pass on the original, export once, and not re-open the exported file for a second round. Each re-open is a new quantisation plus a new chance to clip. That connects directly to the metadata trail: repeated saves cost you fields; repeated pixel passes cost you tones.
Saturation −100 is not the same thing as the black & white button
Saturation computes luma as 0.299R + 0.587G + 0.114B. The weights sum to 1 (0.9999999999999999 in floating point), and they are not arbitrary: green contributes most because the eye is most sensitive there. Worked examples from our chart:
| Colour | R, G, B | Luma |
|---|---|---|
| Yellow disc | 250, 204, 21 | 196.9 |
| Red block | 239, 68, 68 | 119.1 |
| Green triangle | 34, 197, 94 | 136.5 |
| Neutral grey | 128, 128, 128 | 128.0 |
Pushing saturation to −100 collapses each pixel onto its luma, giving a greyscale image weighted by those coefficients. The one-tap Black & white filter is a separate branch in the tool's code (grayscale: true), which may use the browser's own conversion. On most images the two look nearly identical, but they are not the same operation, and on saturated colours you can see a small difference in the grey values. That is a useful thing to know when someone reports "the two black-and-white options give different results" — it is not a bug, it is two different implementations.
The panel's own hint says "At −100 the image turns black & white". Read it literally: it describes the outcome, not an equality with the filter button.
Temperature, sharpening and vignette
Temperature shifts positive toward yellow and negative toward blue. It is a channel bias, not a white-balance measurement; there is no colour-temperature number in Kelvin behind it. If you are correcting a cast from a known light source, use a proper white-balance tool; if you are warming a flat graphic, this slider is fine.
Sharpen uses an unsharp mask: blur a copy, take original − blur (the high-frequency detail), multiply by strength and add it back. Our panel suggests 30–60 for scanned documents. That range exists because scanned text has strong edges and low noise, so amplifying the difference helps legibility. Push it much higher and you amplify noise too, and you get bright or dark halos along every edge — the same "fringe" family as the premultiplication artefact, but caused by convolution rather than by alpha.
Vignette darkens pixels as a function of distance from the centre. It is the one control that is inherently spatial rather than per-pixel. Applied to the tone chart, it changes the grey patches at the edges, which is a good way to see that the "same" slider value does not produce the "same" output everywhere.
Symptom → which slider, and why
| What you see | Do not reach for | Reach for | Reason |
|---|---|---|---|
| Flat white sky | Brightness | Lower brightness, or gamma | Inputs above 255 − b are unrecoverable |
| Crushed black shadows | Contrast | Lower the factor | Contrast ≤1.4 crushes inputs below ~37 |
| Muddy midtones, clean whites | Brightness | Gamma | Gamma pins 0 and 255 |
| Washed-out colours | Contrast | Saturation | Contrast moves luminance, not chroma |
| Halos around text | More sharpen | 30–60, one pass | USM amplifies edge differences |
| Two B&W options differ | — | Neither is wrong | Luma weighting vs a separate grayscale branch |
Reproduce the lab
- Download the tone chart PNG.
- Open Colour Adjust, load the chart, and set brightness +40 only. Export. Sample the brightest grey patch and compare with the table.
- Reload the original, set contrast to the equivalent of 1.4 and export. Check patches 12 and 235 — both should be clipped.
- Reload the original again, use gamma only, and confirm the endpoints stay at 0 and 255.
- Repeat step 2 but export the result and adjust it a second time. Compare a midtone pixel with the single-pass version; the difference is the order/quantisation effect.
If you want to see the re-encode effect in isolation, run the same steps on the JPEG chart and compare. That separates compression artefacts from slider maths — the same discipline used in the metadata matrix.
Where this fits
This page belongs to the Failure Forensics series: it explains visible damage from the tool's own maths. The transparency accident report handles alpha damage, the metadata trail handles field loss across saves, and the 12-cell QA sheet turns all of it into a pre-launch check. None of them repeats another's tables.
Files
Next step: open Colour Adjust with the chart and try the three-curve comparison yourself. Then read the guides index for the rest of the series.
<!-- LAB-EXPANSION -->
Appendix M — A worked per-channel example
Take the yellow disc from the tone chart: R=250, G=204, B=21. Its luma is 0.299×250 + 0.587×204 + 0.114×21 = 196.9. Now apply brightness +40 to each channel: 290, 244, 61 → clamped to 255, 244, 61. The red channel has lost 35 units of information; green and blue have not. That is why a brightened yellow shifts toward a paler, greener yellow rather than simply "getting brighter" — clipping is per channel, not per pixel.
Contrast at factor 1.4 does something different:
R: 1.4(250−128)+128 = 298.8 → 255G: 1.4(204−128)+128 = 234.4B: 1.4(21−128)+128 = −21.8 → 0
The blue channel is crushed to zero while the red clips to white. Saturation increases dramatically as a side effect of a luminance operation, which is why "raise contrast to make it punchier" often produces colours the author did not intend. If you have ever seen a warm photo turn harshly orange after a contrast tweak, this is the mechanism.
Gamma 1/1.4 on the same channels gives roughly 252, 233, 58 — no clipping at either end, and the hue relationship is largely preserved. That is the numerical version of "gamma is gentler": it never asks a channel to exceed its range.
Appendix N — Unsharp mask, one row of numbers
Sharpening is original + (original − blur) × strength. Using a 1×3 kernel [1,2,1]/4 on a one-dimensional edge and a strength of 0.45:
| Position | Original | Blurred | Difference | After USM |
|---|---|---|---|---|
| 0 | 100 | 100.0 | +0.0 | 100.0 |
| 1 | 100 | 100.0 | +0.0 | 100.0 |
| 2 | 100 | 115.0 | -15.0 | 93.2 |
| 3 | 160 | 130.0 | +30.0 | 173.5 |
| 4 | 100 | 115.0 | -15.0 | 93.2 |
| 5 | 100 | 100.0 | +0.0 | 100.0 |
| 6 | 100 | 100.0 | +0.0 | 100.0 |
The edge pixel at position 3 rises from 160 to about 180, and its immediate neighbours dip below 100. Those two dips are the halo. Increase the strength and the halo grows linearly; increase the blur radius and the halo widens. On a scanned document that trade is worth it because the text edge is a real high-frequency signal. On a noisy low-light photo it is not, because the noise is also high-frequency and gets amplified identically. The panel's suggested 30–60 range is a compromise for the first case, not a universal recommendation.
Appendix O — A misuse log from our own tests
We kept a short record of the mistakes that produced the worst outputs on the tone chart, because knowing what not to do is half of a workflow:
| Attempt | Result | Better move |
|---|---|---|
| Brightness +40 then contrast 1.4 | Both ends clipped, yellow shifted green | Use gamma, one pass |
| Saturation −100 then vintage filter | Double greyscale, muddy midtones | Pick one branch |
| Sharpen 90 on the JPEG chart | Visible halos and amplified compression noise | Sharpen 30–60 on the PNG |
| Vignette on the tone chart | Grey patches no longer comparable across the frame | Judge sliders on a flat chart first |
| Adjust, export, re-open, adjust again | Midtones drift from the recomputable table | One pass from the original |
The last row connects to the metadata trail: repeated saves lose fields, and repeated pixel passes lose tones. Both are the same habit wearing different clothes.
Appendix P — How to use the chart as a measuring instrument
The six grey patches at 12 / 45 / 90 / 140 / 190 / 235 are not decoration. Before adjusting anything, sample them and write down the values. After a single pass, sample them again. If patch 12 and patch 235 have both collapsed to 0 and 255, the operation has clipped both ends and no further slider movement will recover them. If patch 140 moved but 12 and 235 did not, you are looking at a gamma-shaped change. If all six moved by the same amount, it was brightness. Three readings identify the operation without reading any code — useful when you are handed an exported file with no history.
Frequently asked questions
What is the difference between brightness and gamma?
Brightness adds a constant and clips highlights above 255 − b. Gamma applies a power curve that pins 0 and 255, so it lifts midtones without destroying clean endpoints.
Why does increasing contrast blow out highlights?
Contrast pivots around 128 with factor × (x − 128) + 128. At factor 1.4, inputs above ~219 clip to white and inputs below ~37 crush to black.
Is saturation −100 the same as the black & white filter?
Not exactly. Saturation collapses pixels onto luma using 0.299/0.587/0.114 weights; the filter is a separate grayscale branch. Results look similar but can differ on saturated colours.
Why 30–60 for sharpening scanned documents?
USM amplifies original − blur. Scanned text has strong edges and little noise, so moderate strength helps; higher values amplify noise and produce halos.
Should I sharpen before or after resizing?
After, on the final pixel grid. Sharpening before a resize means the resize filter re-interpolates the halos you just created.
Files used in this report
- Tone chart PNG — Six grey patches, a red block, a green triangle and a yellow disc
- Tone chart JPEG — For the re-encode comparison