Duotone Effect

Turn any photo into two colours: its shadows become one colour, its highlights another, and every tone in between a blend of the two. One pixel is worked through with real numbers.

Tool Media & Files Updated Oct 16, 2026
How to Use
  1. Drop an image on the box, click to browse, or paste one. TIFF, PSD, HEIC, TGA and camera RAW files open too. A built-in sample is loaded so you can try the presets straight away.
  2. Pick the Shadow colour (what the darkest parts become) and the Highlight colour (what the brightest parts become), or click a preset. Swap exchanges them.
  3. Raise Contrast above 100% to push more of the picture to the two pure colours, or lower it for a softer blend.
  4. Click the picture to follow one pixel through brightness, contrast and the blend in Show Work. Hold Compare to see the original.
  5. Save the result in any format from the Save panel. Large photos are processed again at full size when you save.
Image & Colours
darkest tones
#1e40af
brightest tones
#fbbf24
%, 100 = straight blend
Presets
Result
The ring marks the pixel in Show Work.
Shadow
—
Highlight
—
Contrast
—
Mean Tone
—

Worked Example

A brick-red pixel, RGB (180, 60, 40), in navy #1e40af and gold #fbbf24. Its brightness is Y = 0.299 × 180 + 0.587 × 60 + 0.114 × 40 = 93.6, so t = 93.6 ÷ 255 = 0.3671. Each channel moves 36.71% of the way from navy (30, 64, 175) to gold (251, 191, 36): red 30 + 221 × 0.3671 = 111.1, green 64 + 127 × 0.3671 = 110.6, blue 175 − 139 × 0.3671 = 124.0. The pixel becomes (111, 111, 124) = #6f6f7c, a slate blue-grey a little over a third of the way to gold.

With contrast 150%. t = (0.3671 − 0.5) × 1.5 + 0.5 = 0.3006, so the pixel moves further towards navy: (96.4, 102.2, 133.2), saved as #606685. Every tone below the middle gets darker in the same way and every tone above it lighter, so more of the picture sits near the two pure colours.

The common mistake: the colours the wrong way round. Put the light colour in Shadow and the dark one in Highlight and the picture turns into a negative: dark hair becomes gold and a white sky navy. The same pixel gives #aa9057 instead of #6f6f7c. Keep the darker colour as the shadow, or press Swap.

Show Work

Load an image to see one pixel mapped onto the two colours.

Formulas

Brightness
Y = 0.299R + 0.587G + 0.114B
Rec. 601 luma, 0–255
Tone with contrast
t = clamp((Y ÷ 255 − 0.5) × c + 0.5, 0, 1)
c = contrast ÷ 100; c = 1 leaves t = Y ÷ 255
Two-colour blend
v′ = S + (H − S) × t
For each of R, G, B; S = shadow, H = highlight colour
Mean tone
t̄ = Σ t ÷ N
How far the picture leans towards the highlight colour overall

Duotones in Print and on Screen

In printing, a duotone is a halftone reproduction of an image made by printing one contrasting colour halftone over another. It is most often used to bring out the middle tones and highlights of a picture; traditionally one of the inks is black, with blue, yellow, brown or red the most common second colours. Image editors can now make duotones, tritones and quadtones directly: Photoshop’s Duotone mode works on a greyscale picture and lets the second colour be anything.

On screen, the duotone look is usually made with a gradient map: every brightness from black to white is looked up on a gradient, here a straight line between two colours. Because the lookup only uses brightness, the effect ignores the original colours entirely, which is what makes it such a reliable way to give a set of very different photos one shared look.

About This Tool

This tool maps every pixel’s brightness, with an adjustable contrast, onto a blend between a shadow and a highlight colour, keeps transparency, shows how the picture’s tones spread across the two colours, and works through any pixel you click. Colours can be put in the page address, for example ?shadow=111111&highlight=f97316&contrast=150.

Images are decoded and saved in your browser by the engine behind the Universal Image Converter, so TIFF, PSD, HEIC, TGA and RAW files work too. Nothing is uploaded.

Related tools: Colorize Black & White, Posterize (Color Levels), and Image to CSS Gradient.

Frequently Asked Questions

How does the duotone effect work?

Each pixel’s brightness is measured as Y = 0.299R + 0.587G + 0.114B and scaled to t between 0 and 1. The new colour is the shadow colour plus t times the difference to the highlight colour, so black becomes the shadow colour, white the highlight colour, and mid-grey the halfway blend.

What does the Contrast slider do?

It stretches t around the middle before the colours are applied: t = (Y ÷ 255 − 0.5) × contrast + 0.5, kept between 0 and 1. At 150% a quarter-grey moves from 0.25 to 0.125 and a three-quarter grey from 0.75 to 0.875, so more of the picture lands on the two pure colours.

Do the original colours matter?

Only their brightness does. Pure red (255, 0, 0) has Y = 76.2, almost the same as the grey (76, 76, 76), so both end up as practically the same duotone colour. That is why colourful photos and black-and-white photos work equally well.

Is transparency kept?

Yes. Only red, green and blue are replaced; each pixel keeps its original alpha, so a cut-out PNG stays cut out.

How is this different from Colorize Black & White?

Duotone maps the whole tonal range between two colours you choose, so even the blacks and whites change colour. Colorize keeps black black and white white and tints the tones in between with one colour, the way a toned darkroom print looks.

How do I use the Duotone Effect?

Simply type your numbers and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.

Is it free? Does it work without internet?

Yes to both. It is free with no sign-up, and once the page has loaded it keeps working even with no internet.

Where does my data go?

Nowhere — every calculation runs on your own device. Nothing you enter is uploaded, logged, or stored.

Common Use Cases

Consistent brand imagery

Map every photo on a page to the same two brand colours, such as navy #1e40af and gold #fbbf24.

Posters and event flyers

Contrast 150% with black and orange gives a bold, graphic two-tone print.

Album and playlist covers

Purple and pink turns any portrait into the flat two-colour look of music artwork.

Website hero images

Recolour a background photo into a page’s accent colours so text on top stays readable.

Last updated: