No file open

Tools

Change PDF background color and text color

or drop a file anywhere here

Dropbox
Google Drive
OneDrive
Box

Files other than PDF are converted first. Signing in raises the size limit.

You add
One PDF
You set
A background color and a text color
You get
The same PDF in your colors

To change a PDF's background color, open it here, pick a ready-made pair or set Background and Text with the two color pickers, and press Replace colours. A new background is painted behind every page and the text is drawn again on top in your text color. The original text is not removed: it stays in the file under the new text, with its first colors. The panel opens on Your own colours with Cream, a soft off-white page with dark gray text, and offers three more pairs: Sepia, Soft blue and Dark. A sample line changes as you pick, before you run anything. The panel measures the contrast ratio of your pair, the measure the WCAG guidelines use, and blocks the run when it is under 3:1. Pictures keep their colors. The change applies to the whole document, and Undo brings the original back. It suits a PDF made of text that you want to read in other colors. It does not produce a clean file with only the new colors, so read the limits below first. For a quick dark copy with white, yellow or green text, switch the panel to High contrast.

Our own 2-page A4 test PDF: blue title and link, black text, one picture per page. Dark pair, anonymous run.

Input filethe original
83,884 bytes
Result file15% smaller in our test, pictures pixel-identical
71,304 bytes
Text characters, page 1, inputthe original text
244
Text characters, page 1, resultthe original text stays under the new text
488
First page of our test PDF before the change: blue title and link, black text on white, and a blue to pink gradient picture
The same page after the Dark pair: light gray text on a dark gray page, with the gradient picture unchanged
Measured on indox.org on 5 November 2026: the file we uploaded and the file we downloaded, with the Dark pair on an ordinary PDF. The text came out #E8E8E8 on #1E1E1E, a contrast of 13.6:1, and the click-to-done time was 7.3 s. Drag the handle to compare the same page.

What can you do when you replace PDF colors?

Four ready-made pairs

Cream, Sepia, Soft blue and Dark each set a background and a text color in one click. Cream is selected when the panel opens.

Two color pickers

Background and Text each have their own color picker. Set one or both to any color, and the sample and the contrast check update.

A sample before you run

A line of sample text is shown in your pair, so you see the combination before it touches the file.

A contrast check that blocks hard-to-read pairs

The panel says Easy to read with the contrast ratio, or Hard to read when the ratio is under 3:1. In that case Replace colours stays disabled until you pick colors further apart.

What replacing colors keeps and what it changes

Stays the same

  • Pictures, photos and drawn shapes in their own colors. In our test the picture on each page was pixel-identical.
  • The page count, page size and page order. The two links in our test file were kept.
  • The file on your device. You download a recolored copy.

Changes

  • A solid rectangle in your background color is added behind each page's content, so a full-page picture or fill can hide it.
  • Each character of text is drawn again on top in your text color, including a blue title or link, which took the same text color in our test.
  • The original text stays in the file under the new text, with its original colors, so the text layer holds every character twice.
  • A character the font cannot encode may be drawn in another standard font, or as an asterisk.
  • The file size changes. In our test it went from 83,884 to 71,304 bytes, because the pictures were saved again. Yours may differ.

Which color pair for which job

You wantBackgroundText color
Easier reading on screen at nightA dark color, such as the Dark pairA light color such as white or pale gray
A softer page for long readingOff-white or cream, such as Cream or SepiaDark gray or brown instead of pure black
A page with less ink for printingWhiteBlack or dark gray
Text that stays readable for everyoneAnyA pair with strong contrast. WCAG asks for 4.5:1 for normal-size text, and the panel's floor is 3:1.

How to replace PDF colors in 3 steps

  1. Add your PDF

    Drop the PDF into the upload area at the top of the page, or click to choose it: up to 200 MB when you are not signed in, or 200 MB with a signed-in account. It opens in the editor with the colors panel ready.

  2. Choose a pair or your own colors

    Select Cream, Sepia, Soft blue or Dark, or set Background and Text with the color pickers. Check the sample and the contrast line under it.

  3. Replace colours and download

    Press Replace colours. When the editor shows that the job is done, look through the pages, then press Download PDF, or Undo to go back.

Screenshot of a sample page after Replace colours with the Cream pair: dark text on a cream page, gradient picture unchanged

Why replace PDF colors with indox?

The readability check is part of the panel. Instead of leaving you to guess whether gray on cream will work, it measures the pair and stops you under 3:1, so you don't download a file you cannot read. The ready-made pairs are meant for reading, and the default is already a pair that changes the page, so one click gets a result. In our test the pictures came back pixel-identical, which keeps charts and photos accurate. Undo brings the original back. It is free, our run needed no account, and files move over HTTPS.

  • Four ready-made pairs
  • A picker for each color
  • A sample line before you run
  • A contrast check that blocks pairs under 3:1
  • Undo brings the original back
The indox Replace colours page before a PDF is added: the upload area and the editor frame

What are the limits when you replace PDF colors?

File size
When you are not signed in, a PDF can be up to 200 MB, within a daily free allowance. A signed-in account can upload up to 200 MB per file.
Where it runs
Your PDF is uploaded to indox's server, recolored there and sent back to the editor; the sample line and the contrast check run in your browser. If you are not signed in, the upload and the result are deleted 24 hours after the job finishes. A signed-in account keeps them in its history until you delete them, for at most 180 days, or for 24 hours or 30 days if you choose that. Either way indox keeps a record of the job, such as the file name and its status, not the file.

Limits worth knowing

  • The original text stays inside the file, under the new text, and so do its original colors. In our test on 5 November 2026, a 2-page PDF with black text and a blue title and link had 244 text characters on page 1 before and 488 after, and the black and the blue were still in the file. Anyone who reads the file's text layer gets both. This tool does not make a file that holds only the new colors.
  • Copying text from the result gives doubled letters. In our test on 5 November 2026, extracting a line from the Dark result gave VViillllaaggee for Village. If you need the text for reuse, copy it from your original file.
  • Some files come back wrong. In our test on 5 November 2026, a PDF whose text is set at 1 pt and scaled by the page's drawing instructions came back with the original black and blue text not recolored, and with the new text as 1 pt dots (244 of 488 characters on page 1). On Cream it still looked readable, but only because the old text stayed. With a dark pair the text would be dark on dark; we did not run that pair on this file. Check every page of the result before you use it. Undo restores the original, and an ordinary file of the same content recolored correctly in our test.
  • Pairs under 3:1 are blocked. 3:1 is the lowest ratio the panel allows. WCAG asks for 4.5:1 for normal-size text, so aim higher for small print, and look at the result on a real page.
  • Only the text and the page background change. Photos, drawn shapes and other pictures keep their colors, and a full-page picture or fill, which is what a scan or a colored page background is, sits on top of the new background and hides it.
  • Letters that the page's font cannot encode are drawn in a standard font where one fits, and as an asterisk where none does. Check unusual characters in the result.
  • There is no page range, and the only preview is the sample line.

When the result is not what you expected

What you seeWhyWhat to do
Copying text gives doubled lettersThe original text stays in the file under the redrawn textCopy the text from your original file. If you need a file that holds only the new colors, this tool does not make one.
The text is tiny dots, or the old black text did not changeThe file sets its text at 1 pt and scales it in the page's drawing instructions, and the redraw does not follow that scalingPress Undo. Try a copy of the file saved or exported another way, if you have the source. Which route fixes it was not part of our run, and an ordinary file recolored correctly in our test.
With a dark pair the page looks black on blackOn a file like the one above, the original black text is not recoloredPress Undo and do not use a dark pair on that file. Check every page before you download.
The background does not changeThe page holds a full-page picture or fill, such as a scan or a colored background, that covers the new backgroundThis tool does not lift that picture or fill. For a dark page, Invert colours can flip it to light by turning each page into an image. If you can do without the images, take them out with Remove Images first.
Old text shows through around the new textThe original text stays underneath the redrawn textPick a text color close to the old one so the overlap is hard to see.
Some letters turned into asterisksThe font could not encode those characters and no standard font could draw themCheck the characters in the source file, or try a different file.
Replace colours is disabledThe pair is under 3:1 contrast and the panel says Hard to readPick colors further apart until the line says Easy to read.

What do the free and paid plans add?

Free

  • All converters
  • Daily credit refresh
  • Email support

Basic

  • Access to all features
  • AI Extract
  • Priority conversions
  • Email support
Highest priority

Premium

  • Everything in Basic
  • Highest priority queue
  • Priority support

Pay-As-You-Go

  • No subscription
  • Credits never expire
  • Opt-in auto-refill
  • Access to all features
See prices

Ways to get another page color in a PDF

MethodChanges the fileText afterwardsColor control
Replace colours hereYes, you download a new fileStill text, but the original stays under the new text, so copying gives doubled letters in our testOne background and one text color for the whole document
High contrast and Invert coloursYes, you download a new fileSee that tool's pageFixed looks, such as white, yellow or green text on black
Change one color inside the page's drawing instructionsYesStays real text, because only the color values change. PDF color operators such as rg, RG, g and k set the fill and stroke color (ISO 32000-1, section 8.6)One color at a time, with a specialist tool. indox does not offer this
Save the pages as pictures in the new colorsYes, a new file of picturesText can no longer be selected unless it is recognized againAny colors, made outside indox

Who replaces PDF colors?

  • Readers who want a softer page

    Bright white tires the eyes over a long document. Cream or Sepia gives the page a warmer tone with dark text.

  • Night readers

    The Dark pair gives light text on a dark page. For white, yellow or green on black, use the High contrast mode of the same panel.

  • People who need strong contrast

    Set the colors yourself and watch the ratio. The panel will not let you run a pair under 3:1.

When to replace colors, and when to pick another tool

  • A white text PDF is harsh in a bright room and you want a cream page.
  • A long report reads better as light text on a dark page at night.
  • Gray text on white is hard to read and you want darker text.
  • You want a soft blue page for a document you read often.
  • You want to check that your colors pass a readable ratio before you share.

Where can I read more?

Do it all with indox

Replace colors FAQs

How do I change the background color of a PDF?

Open the PDF here, choose a ready-made pair or set Background with the color picker, press Replace colours, then press Download PDF. The steps are the same on a phone, because the editor runs in your browser.

How do I change a PDF background color to white for printing?

In a PDF, a colored page background is itself drawn on the page, as a filled shape or a picture. This tool paints its new background behind the page content, so it recolors a white page but cannot turn an existing dark background white. For a dark page, Invert every colour, photos too, in High contrast, flips dark to light like a photo negative, but it turns each page into an image, so the text can no longer be selected.

Why can't I run some pairs?

The panel measures the contrast between your background and text. Under 3:1 it says Hard to read and disables the button. Pick colors further apart.

Do pictures change color?

No. Photos, charts saved as pictures and other images keep their colors. In our test on 5 November 2026 the pictures in the result were pixel-identical to the original. Only the page background and the text are recolored.

What does it start on?

Cream, a soft off-white background with dark gray text. Untouched, a run already changes the page.

Can I use any color?

Yes, the pickers take any color, and the panel tells you whether the pair is readable. Sepia, Soft blue and Dark are ready-made if you would rather not choose.

Can I change only some pages?

No. The panel recolors the whole document and has no page range.

Why do I see old text around the new text?

The original text stays underneath the redrawn text. Pick a text color close to the old one to make the overlap hard to see.

How is this different from High contrast?

High contrast offers fixed looks: white, yellow or green text on black, or black text on white. Your own colours lets you set both colors. Both are in the same panel, one switch apart.

Does it change the file or only how I see it?

It changes the file. The PDF is uploaded to indox's server and you download a new PDF in your colors. If you are not signed in, the upload and the result are deleted 24 hours after the job ends. Undo brings the original back in the editor, and your own copy on your device is not touched. A signed-in account keeps them in its history instead.

Can I still copy the text afterwards?

The text is still there, but the original text stays under the new text. In our test on 5 November 2026, extracting a line gave doubled letters. Copy from your original file when you need clean text.