---
title: "White Balance: Kelvin Presets, Auto vs Custom and How to Set It - CE.SDK Glossary"
description: "White balance keeps white and gray neutral under any light. Balance a photo yourself, compare camera presets in kelvin and set a custom white balance."
url: "https://img.ly/glossary/white-balance/"
type: "page"
---

> This is the markdown version of [White Balance: Kelvin Presets, Auto vs Custom and How to Set It - CE.SDK Glossary](https://img.ly/glossary/white-balance/). For all pages in one file, see [llms-full.txt](https://img.ly/llms-full.txt). For an index of all available pages, see [llms.txt](https://img.ly/llms.txt).

---

# 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](https://img.ly/glossary/color-correction-vs-color-grading.md).

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 tool lights a photo with Tungsten 3,200 K, Daylight 5,200 K, Cloudy 6,000 K or Shade 7,000 K and balances it back to neutral with a Kelvin setting from 2,500 K to 10,000 K, a picked spot, gray world or white patch. With the starting settings, the readout says: "The white balance expects 5,200 K light, but 3,200 K light falls on the scene, so grays come out orange. Lower the setting toward 3,200 K."

## 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.

- **Incandescent or tungsten**: Nikon Z50II: 3,000 K, Canon EOS-1D X Mark III: 3,200 K

- **Fluorescent**: Nikon Z50II: 4,200, 5,000 or 6,500 K by tube type, Canon EOS-1D X Mark III: 4,000 K for white tubes

- **Direct sunlight or daylight**: Nikon Z50II: 5,200 K, Canon EOS-1D X Mark III: 5,200 K

- **Flash**: Nikon Z50II: 5,400 K, Canon EOS-1D X Mark III: Set by the flash, or 6,000 K

- **Cloudy**: Nikon Z50II: 6,000 K, Canon EOS-1D X Mark III: 6,000 K

- **Shade**: Nikon Z50II: 8,000 K, Canon EOS-1D X Mark III: 7,000 K

- **Auto**: Nikon Z50II: 3,500 to 8,000 K, Canon EOS-1D X Mark III: 3,000 to 7,000 K

- **Set in kelvin**: Nikon Z50II: 2,500 to 10,000 K, Canon EOS-1D X Mark III: 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.

### Step 01: 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.

### Step 02: 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.

### Step 03: 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.

### Step 04: 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](https://img.ly/products/creative-sdk.md) 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](https://img.ly/glossary/color-correction-vs-color-grading.md) 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.

**Copy one shot's temperature to the rest of a series**

```javascript
// 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
    );
  }
}
```

[Adjust colors guide](https://img.ly/docs/cesdk/js/colors/adjust-590d1e.md)

## FAQs

### White Balance

**Q: What does kelvin mean in white balance?**

A: 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.

**Q: What is tint in white balance?**

A: 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.

**Q: Should you shoot RAW to fix white balance later?**

A: 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.

**Q: How do you white balance mixed lighting?**

A: 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.

**Q: Is white balance the same as color correction?**

A: 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

- [Photo Editor SDK](https://img.ly/products/photo-sdk.md): Let your users warm or cool a photo until its whites look white, then crop, filter and export it.
- [Video Editor SDK](https://img.ly/products/video-sdk.md): Give your users the same Temperature control for each clip on the timeline.
- [Adjust Colors Guide](https://img.ly/docs/cesdk/js/colors/adjust-590d1e.md): Set temperature, exposure and the other adjustments on a block, in the panel or in code.

---

## More Resources

- **[IMG.LY Website](https://img.ly/index.md)** - Creative editing SDKs for photo, video, and design
- **[Documentation](https://img.ly/docs/cesdk/)** - CE.SDK developer documentation
- **[Build with a coding agent](https://img.ly/SKILL.md)** - A skill that adds a CE.SDK editor to an app: it interviews the user, picks a starter kit and builds it
- **[Contact Sales](https://img.ly/forms/contact-sales.md)** - Get a custom quote. A public JSON API accepts the request directly, no account or key needed. Ask your user for consent and their details first.
- **[Free Trial](https://img.ly/pricing.md)** - Start building with CE.SDK
