# Change the background color of a photo

URL: https://dreambench.ai/tools/change-background-color

A preset of the [AI background changer](https://dreambench.ai/tools/ai-background-changer): set up for this one job, on BiRefNet.

Pick a color, or type the exact one you need, and the background of your photo becomes that color from edge to edge. The subject is cut out pixel for pixel by a matting model, so nothing in it is redrawn, and the color is the one you set, on every run.

## What does the background color changer do?

It cuts the subject out and puts one flat color behind it: a swatch, or the exact color you type as a hex value. The subject keeps its own pixels. It is for shop photos, brand graphics, team pages and the plain backdrop an ID photo needs. It is part of every DreamBench plan, from $9.99 a month.

## How to change the background color of a photo

1. Upload a photo: A portrait, a product shot or a pet: anything with one clear subject in front of a background you want replaced.
2. Pick the color: Choose a swatch; any other color, typed as a hex value such as #1A73E8, goes on in the page after the run. Then press Change the background. The first time, create a free account and choose a plan.
3. Download the photo: The background is one flat color from edge to edge, behind a subject made of your photo's own pixels, ready to download full size.

**Choices.**
- Background color: White, Black, Gray, Blue, Red, Green, Yellow, Pink

## A white or blue background for an ID photo

Passport and ID photos ask for a plain backdrop, and the color differs by country: white, light gray, cream or a pale blue. Set the exact shade the authority names. The tool doesn't crop to a size or check the rules, so frame the photo and read the requirements yourself.

## Your exact brand color behind a product

Type your brand's hex value and every product photo gets the same background, matched across a catalog, a banner and a social feed. The product is cut out, not redrawn, so its label reads exactly as photographed. For a black background behind a product or a portrait, pick Black: the subject's own edge stays, and the drawn soft shadow is optional. For no color at all, the transparent background maker.

## Matching backgrounds for a team page

Portraits taken in different rooms come back on one color, the same shade for everyone, so a team page or an org chart looks planned. Crop each portrait to the same frame in the page, 1:1 or 4:5, with no new run, so the heads sit alike.

## Works with

- What it takes: JPEG, PNG, WebP or HEIC, up to 40 MB, straight from a phone or a camera. An iPhone's HEIC photo becomes a JPEG on your device as you choose it, in any browser. A picture larger than 2048 pixels on its long edge is scaled to 2048 before the run.
- What you get: A PNG at the size of your upload, up to 2048 pixels on its long edge.
- Canva, Figma and PowerPoint: Type the same hex value your design uses, and the photo's background matches the slide or the layout exactly.
- Shopify, Etsy and Amazon: Use white for a main listing image and your brand color for banners and secondary images.
- Passport and ID photo services: Set the color the authority asks for, then frame and size the photo to its rules.

## Which model runs it, and where it fails

The Background color changer runs on BiRefNet. BiRefNet is an open-source model built to separate a subject from its background at high resolution. It decides, pixel by pixel, what is subject and what is background, with soft edges where the two meet, and draws nothing new. DreamBench runs it on fal, and the subject in the result is made of your photo's own pixels.

- Exactly the color you set: A swatch or your own hex value fills the background, so the shade is the one you chose, the same on every run and on every photo.
- A pixel-exact cutout: A matting model decides what is subject and what is background; the subject keeps your photo's pixels, so a label is legible and a face is the face. The matte is worked out at 2048 pixels on a photo over 1280 pixels on its long edge, and at 1024 below that, so a large, sharp upload gives a cleaner edge.
- Try another color after the cut: The color goes onto the cutout in the page, so another shade, with or without a soft shadow, needs no new run. A photo of your own placed behind the subject stays in your browser and is never uploaded.

**Where it fails.**
- Fine hair against a strongly contrasting color, dark hair on bright yellow, can keep a faint halo of the old background.
- A subject the same color as the new background, a white shirt on white, loses its outline.
- A shadow on the floor or wall is treated as background and goes with it; the soft shadow is a drawn one, not the photo's own.

## Background color changer FAQ

- **How do I change the background color of a photo?** To change the background color of a photo, upload it, choose a swatch or type the exact color as a hex value, and press Change the background. A matting model cuts the subject out pixel for pixel and the color fills the background from edge to edge. Make it with any DreamBench plan and download it as a full-size PNG.
- **Can I use the background color changer without a plan?** No. Every run needs a DreamBench plan; you create an account on the way, and the button shows the price in credits before you press it. A run that fails is refunded, and trying another color after the run costs nothing. The PNG carries no watermark: your subject's own pixels on the color you set.
- **Can I use my exact brand color as the background?** Yes. Type the brand color as a hex value, such as #1A73E8, and the background is filled with exactly that color, the same on every photo and every run. A color given in CMYK or Pantone needs converting to hex first; most brand guides list both.
- **Can I make the background of a photo white or blue for a passport photo?** Yes. Set the background to the exact white, gray, cream or blue the issuing authority names, typed as a hex value, and the subject is cut out pixel for pixel onto it. The tool doesn't crop to passport size or check any country's rules, so frame the photo and read the requirements yourself.
- **Can I use a gradient or my own image as the background?** Yes, after the run. The run gives one flat color from edge to edge; the page can then lay a studio gradient or a photo of your own behind the subject, with no new run. For a scene drawn around the subject with its light matched, use the AI background changer.
- **Can I try another color without running it again?** Yes. The color goes onto the cutout in the page, so another swatch or hex value, with or without a soft shadow, needs no new run and uses no credits.
- **Which background color, or which blue, does my passport photo need?** It depends on the issuing authority: there is no single passport blue, and many countries ask for white, light gray or cream instead. The UK, for one, asks for a plain light-colored background. Take the shade from the authority's own page before you submit, and type it as a hex value; the tool fills exactly that color.
- **Does changing the background color alter the person or product in the photo?** No. The subject is cut out by a matting model, which only decides which pixels belong to it; those pixels are your photo's, so faces, text and logos stay exactly as they were. Only the background, and the soft edge where the two meet, changes.
- **Can I change the background color in Canva, Word or on my iPhone instead?** Yes: remove the background in Canva and place a colored shape behind the cutout, set a page color in Word or PowerPoint behind a transparent picture, or on an iPhone touch and hold the subject in Photos to lift it and paste it onto a colored page. Those give a pasted cutout with no soft shadow. This page does it in one step, in any browser, at full size.
- **Is the download a PNG or a JPEG?** A PNG, with the color filled in, at the size of your upload up to 2048 pixels on its long edge; a larger photo is scaled to 2048 before the run, and nothing in the subject is redrawn. If a passport or visa portal only takes JPEG, export one from any editor; the color stays exactly the hex you set.
- **Can I change the background color on a batch of photos?** No, one photo a run, and there is no API: the tool is used through this page. Type the same hex value each time and every photo comes back on exactly the same color, so a catalog or a team page made over several runs still matches.
- **Why is there a halo or a thin line of the old background around the edge?** A halo at the edge is the old background showing through the soft edge pixels. The matte gives each edge pixel its own opacity, so a pixel half hair and half sky keeps some sky color, which shows against a strongly contrasting swatch. Pick a swatch nearer the old color, or upload a sharper copy: a photo over 1280 pixels on its long edge is matted at 2048 pixels.
- **Which exact colors are the eight swatches?** The eight swatches are exact colors: White is #ffffff, Black #000000, Gray #808080, Blue #87ceeb, Red #c8102e, Green #3cb371, Yellow #ffd23f and Pink #f9c6d3. A run on this page and a finish in the page paint the same pixels, so the preview and the download match. For any other shade, type its hex value after the run.
- **Can I add a shadow or a reflection, or crop to a square, before I download?** Yes, in the page after the run, with no new run: a soft shadow, a contact shadow where the subject stands, or a reflection on a glossy floor, and a frame of 1:1, 4:5, 9:16 or 16:9, or a padded square. The color, the shadow and the frame are drawn in your browser onto the same cutout, so change them as often as you like.
- **How much does the Background color changer cost?** Each run uses 7 credits from your DreamBench plan. Starter, $9.99 a month, includes 1,100 credits a month, about 157 runs of the Background color changer, plus AI video. A run that fails is refunded.
- **Do I need an account to use the Background color changer?** Yes: a free account and a DreamBench plan. The tools are part of every plan, from Starter at $9.99 a month.
- **Which image files does the Background color changer take?** A photo up to 40 megabytes: JPEG, PNG, WebP, HEIC or another format your browser opens. A photo straight from a phone is fine, an iPhone's HEIC included: the page scales a large picture down to 2048 pixels on its long edge before the run, so the result is never larger than the page says.
- **Can I use what the Background color changer makes commercially?** Yes. Under the DreamBench Terms you may use what a tool makes for personal and commercial purposes, including advertising, monetized content and work for clients, with no separate commercial-use upgrade. The Terms don't guarantee copyright in a result or clear another person's rights in your upload, so only use photos you have the rights to.
- **Is my photo used to train AI?** No. DreamBench doesn't use your prompts, uploads or videos to train or fine-tune AI models, and any future training program would be opt-in.
- **What happens to my uploaded photo?** It stays in your browser until you make a result. Then it is used to make that result and nothing else, and removed from the tool's storage after seven days along with the result. A result you keep in your library stays as long as you keep it.

Runs on BiRefNet. DreamBench is an independent platform; its tools come with every plan (https://dreambench.ai/pricing). Copy last checked 2026-10-22.
