White Balance
Also known as: WB
What Is White Balance?
White balance is the adjustment that makes white and gray things look neutral in a photo or video, whatever color the light was. It scales the red, green and blue channels of the whole picture until neutral colors hold equal amounts of each, and every other color shifts by the same factors. In editing, it is part of color correction.
Your eyes adapt to the light around you, so a sheet of white paper looks white to you under a desk lamp and outdoors alike. A camera records the light as it is: set for daylight, it shows the paper orange under a tungsten bulb and bluish in the shade, and white balance is the correction that takes that cast out.
Balance a photo yourself
Choose the light on the scene, then bring the kitten back to neutral with a Kelvin setting, a spot you pick or one of two automatic methods. The sunset and your own photo start as shot.
The picture loads when this card scrolls into view.
The kitten photo stands in for a scene shot with the white balance set right, and the tool tints it with the color of the light you choose. Like an editor's eyedropper, it scales the red, green and blue channels of a finished picture, while a camera scales its raw sensor data, which keeps the other colors more accurate. A photo you open stays on your device.
What Color Temperatures Do White Balance Presets Use?
Color temperature names a light by the temperature, in kelvin, at which a black body glows the same color: low values are orange-red and high values blue. A preset sets the typical color temperature of one kind of light, and the same name can mean a different number from one camera maker to the next.
| Nikon Z50II | Canon EOS-1D X Mark III | |
|---|---|---|
| Incandescent or tungsten | 3,000 K | 3,200 K |
| Fluorescent | 4,200, 5,000 or 6,500 K by tube type | 4,000 K for white tubes |
| Direct sunlight or daylight | 5,200 K | 5,200 K |
| Flash | 5,400 K | Set by the flash, or 6,000 K |
| Cloudy | 6,000 K | 6,000 K |
| Shade | 8,000 K | 7,000 K |
| Auto | 3,500 to 8,000 K | 3,000 to 7,000 K |
| Set in kelvin | 2,500 to 10,000 K | 2,500 to 10,000 K |
Equal steps in kelvin are not equal steps in color. Photographers also measure color temperature in mired, one million divided by the kelvin value, which tracks how far the color moves. Nikon’s manual uses it to show that the same 1,000 K step is far larger near tungsten light than near daylight.
83 mired
From 3,000 K to 4,000 K
a large shift near tungsten light
24 mired
From 6,000 K to 7,000 K
a small shift near daylight
How Does Auto White Balance Work?
Auto white balance estimates the color of the light from the picture itself, then scales the channels to cancel it. Two classic estimates show the idea, and you can run both on the photos above. Cameras also let you choose how much of a warm light’s color to keep, and they correct only within a set range.
- Gray world assumes the whole scene averages to gray and makes the picture’s average color neutral. It goes wrong when one color fills the frame, such as a sunset or a painted wall.
- White patch assumes the brightest part of the picture is white and makes it neutral. It goes wrong when the brightest part is overexposed or isn’t white at all.
- Warm-keeping auto modes, such as Nikon’s Keep warm lighting colors, Fujifilm’s Ambience priority and Canon’s Auto: Ambience priority, leave some of the orange of incandescent light in the picture instead of removing all of it.
- A working range limits every auto mode: Nikon lists about 3,500 to 8,000 K for its auto settings and Canon about 3,000 to 7,000 K, so candlelight at about 1,850 K lies outside both.
Auto or Custom White Balance: Which Should You Use?
Use auto when the light keeps changing and a preset or custom setting when every shot has to match. A product photographer under the same studio lights all day, for example, measures a custom white balance once per lighting setup so the whole catalog matches, while a travel photographer walking from sun into shade keeps auto on and shoots RAW.
Use auto white balance for
-
Light that changes from shot to shot, outdoors or at events
-
RAW files, where you can set the white balance again later
-
Scenes with one kind of light inside the auto range
Use a preset or custom white balance for
-
Series that must match, such as product photos for one catalog
-
Mixed light, where auto and the presets can miss
-
JPEG photos and video that go out without a color pass
How Do You Set a Custom White Balance?
A custom white balance measures the light from something neutral in the scene and stores the result. Nikon calls it preset manual and keeps up to six measurements, and Fujifilm keeps three custom slots.
Put something white or gray in the subject’s light
A gray card or a sheet of white paper works, as long as it stands where the subject is and catches the same light. A gray card reflects every color evenly, so it takes on the color of the light and nothing else.
Choose the custom white balance setting
On a Nikon, pick preset manual and one of its slots, d-1 to d-6. On a Fujifilm, pick one of the custom slots, 1 to 3. Canon calls its version custom white balance.
Fill the frame and measure
Point the camera so the card fills the target area and take the measurement. Fujifilm cameras then report completed, or under or over: raise the exposure compensation after under, lower it after over, and measure again.
Measure again when the light changes
A stored setting fits only the light it was measured in. Measure again after a new lamp, a window opening up or a move from sun into shade.
How White Balance Works in CE.SDK
In the CE.SDK editor, your users correct white balance with Temperature in the Adjustments panel, which warms an image or video with positive values and cools it with negative ones. Your app decides whether the panel appears through the ly.img.adjustment feature, and the color correction entry walks through it on a test chart.
Temperature starts at 0 and moves the color warmer or cooler from there rather than taking a value in kelvin. In code it is the effect/adjustments/temperature property of a block’s adjustments effect, the same in the Web, iOS, Android and Node.js SDKs, and a block holds one adjustments effect. To keep a series consistent, read the value from the shot your user corrected and give it to the other shots from the same light.
// Find a block's adjustments effect, or add one if it has none.
function adjustmentsOf(block) {
const existing = engine.block
.getEffects(block)
.find(
(effect) =>
engine.block.getType(effect) === '//ly.img.ubq/effect/adjustments'
);
if (existing !== undefined) return existing;
const effect = engine.block.createEffect('adjustments');
engine.block.appendEffect(block, effect);
return effect;
}
// Give shots taken under the same light the temperature of the one your
// user corrected.
function matchTemperature(reference, others) {
const temperature = engine.block.getFloat(
adjustmentsOf(reference),
'effect/adjustments/temperature'
);
for (const block of others) {
if (!engine.block.supportsEffects(block)) continue;
engine.block.setFloat(
adjustmentsOf(block),
'effect/adjustments/temperature',
temperature
);
}
} FAQs
Kelvin (K) is the unit of color temperature, which describes a light by the temperature at which a black body glows the same color. A household bulb sits around 2,400 to 3,000 K and an overcast sky around 6,500 K. On a camera, the Kelvin setting names the light to cancel, so a lower setting makes the picture bluer and a higher one makes it warmer.
Tint is the second axis of white balance, running from green to magenta. The Kelvin setting moves color between blue and amber, which covers light shaped like a black body, and tint corrects the green or magenta cast some artificial lights add on top. Nikon compares its green to magenta fine-tuning to color compensation filters.
It helps. A RAW file keeps the sensor data and stores the camera's white balance setting next to it, so a raw converter can apply any white balance later, and balancing raw data shifts the other colors less than correcting a finished JPEG. Setting it in the camera still pays off, because the converter starts from that setting.
Auto and the presets can miss when two kinds of light meet, such as a lamp indoors with daylight from a window, and Nikon's manual suggests measuring a custom white balance instead. On a set, photographers can also cover lamps with colored gels so that every light has the same color temperature.
White balance is one part of color correction. Correction also covers exposure, contrast and the black and white points, and it makes shots match before color grading adds a look. A warm look added on purpose in grading isn't a white balance error.
Links
Documentation and references for this concept.
Photo Editor SDK
Let your users warm or cool a photo until its whites look white, then crop, filter and export it.
Video Editor SDK
Give your users the same Temperature control for each clip on the timeline.
Adjust Colors Guide
Set temperature, exposure and the other adjustments on a block, in the panel or in code.
Related Terms
Color Correction vs. Color Grading
Two stages of work on the color of video or photos. Color correction makes each shot accurate and consistent by setting …
Color Grading
Shaping the contrast, color casts and saturation of footage or photos so that every shot matches and shares a chosen sty…
LUT
A table that maps each input color to an output color, used to convert log footage to a display standard or to give imag…
Saturation vs. Vibrance
Saturation moves every color in a photo by one factor, so skin tones and strong colors change as much as dull ones, and …



