InvertPixel

Browser tool · 6 modes · 0 uploads

Color Inverter

A colour inverter answers two different questions: what is the complement of this hex code, and what a whole photograph looks like when inverted. Both are 255 − x.

Drop an image, paste it, or click to choose JPG · PNG · WebP · GIF · BMP — decoded on this device, never uploaded

Nothing is uploaded

The bytes stay in the tab. Clear the network panel, then invert a photo: no request appears, because the work happens in page memory.

Full resolution

No 2 MP preview cap, no server-side resize. A 48 MP frame comes back at 48 MP.

Six modes, not one

Whole image, a single channel, skin-safe, or dialled back to any strength between 0 and 100%.

About

What this conversion actually does

In RGB, the complement of a colour is not a matter of taste. Take each channel, subtract it from 255, and you have the colour on the opposite side of the wheel: #FF0000 becomes #00FFFF, #3366CC becomes #CC9933. The arithmetic is exact, reversible and identical for every pixel, which is why the same operation works on a single swatch and on a 48 MP photograph.

Painters mean something slightly different by "complementary". The traditional wheel is built on red-yellow-blue, where red’s opposite is green; in RGB, red’s opposite is cyan. Both are useful, but they disagree, and mixing them up is the most common reason an inverted palette looks wrong to a designer.

Specification

What it accepts, and what it returns

Technical limits of the inverter
Input formatsJPG, PNG, WebP, GIF (first frame), BMP, AVIF where the browser decodes it
Maximum sizeNo fixed cap. Tested to 8000 × 6000 (48 MP) on a machine with 8 GB of RAM
Speed1920 × 1080 in well under a second; 48 MP in about four seconds
TransparencyAlpha is never touched. PNG output keeps it, JPG output is flattened onto white
OutputPNG (lossless, alpha preserved) or JPG at quality 0.92
UploadsNone. The file is read with the File API and drawn to a canvas that never leaves the page

Reference

Complement pairs, checked

The table is the same arithmetic applied to eight common colours. Every pair is exact: invert either side and you get the other.

#CC9933

Type any six-digit hex; the complement updates as you type. Without JavaScript the table below still works.

Complementary colour pairs
ColourHexComplementHex
Red#FF0000Cyan#00FFFF
Orange#FF7F00Azure#0080FF
Yellow#FFFF00Blue#0000FF
Green#00FF00Magenta#FF00FF
Royal blue#3366CCOchre#CC9933
Near black#1A1A1APaper grey#E5E5E5
Cream#F5F0E6Ink#0A0F19
Mid grey#808080Mid grey#7F7F7F

Modes

Six modes, and when each one is the right call

Invert modes and their intended use
ModeWhat it doesWhen to use it
Full invert255 − value on R, G and BA true negative. Also the base layer for duotone and print work.
Red channel onlyR inverted, G and B untouchedPushes the whole image toward cyan-green. One plate of a two-colour screen print.
Green channel onlyG inverted, R and B untouchedMagenta shift. Good for testing how a muted palette reads in print.
Blue channel onlyB inverted, R and G untouchedYellow shift. Useful for warm/cool split toning without a curve tool.
Smart invert (keeps skin)Skips pixels inside the skin-tone rangePortraits. Faces stay recognisable while the background turns into a negative.
Intensity 0–100%Blends the negative with the originalAnything that needs a hint of the effect rather than a full inversion.

Method

Three steps

  1. Start with a hex code

    Paste #RRGGBB into the field below and read the complement. This is the fastest way to build a two-colour palette that is guaranteed to be opposite rather than merely different.

  2. Or invert a whole image

    Drop a file into the tool at the top of this page. Every pixel is converted with the same rule, which makes the result a true negative rather than a recolour.

  3. Compare before you commit

    An RGB complement of a saturated brand colour is often louder than the original. Keep the result as a starting point, then pull saturation back 10–20% before it goes into a real layout.

Use cases

What people actually use it for

Two-colour palettes

A complement is the cheapest way to get a second colour that is guaranteed to sit opposite the first without clashing. Invert the brand hex and adjust from there.

Dark-theme conversion

Inverting a light palette gives a dark one with the same relationships. It will not be perfect — saturated accents usually need reducing — but it is a better first draft than picking greys by eye.

Duotone bases

Invert an image, then map the result onto two inks. The negative has the highlight and shadow structure a duotone needs already built in.

Contrast checks

If two colours look identical in the negative, they have the same luminance and will fail a contrast check. Inverting is a rough but instant way to catch that.

Colour teaching

Six channels, one subtraction, and the whole complement relationship becomes visible. It is the shortest demonstration of what an RGB colour actually is.

Print and packaging tests

Inverting a label shows how the design reads on a dark substrate before you commit to a foil or a varnish.

Under the hood

The hex, worked through

#3366CC is R 51, G 102, B 204. Subtract each from 255: 204, 153, 51, which is #CC9933. The luminance is preserved in the sense that the sum of the channels is unchanged, which is why a complementary pair has the same total brightness even though one reads warm and the other cool.

Mid-grey is the fixed point: #808080 inverts to #7F7F7F, one step away, because 255 − 128 = 127. That one-unit error is why inverting an 8-bit image twice gives back the original exactly only when the operation is symmetric — and it is, since 255 − (255 − x) = x for every integer x in range.

Questions

Answered plainly

Is the RGB complement the same as the painter’s complement?

No. On the traditional red-yellow-blue wheel, red’s opposite is green. In RGB, red inverts to cyan. Screen work uses RGB, so the tool follows RGB — but a print designer may want the RYB answer instead.

Why does red invert to cyan?

Cyan is what you get when you remove red from white. Since inverting is subtracting each channel from white (255), a pixel with full red and no green or blue becomes a pixel with no red and full green and blue — cyan.

Does inverting a photo give complementary colours?

Yes, pixel by pixel. Every colour in the result is the exact complement of the colour that was in that position, which is why a negative of a warm photograph reads cool overall.

Which is better for dark mode, invert or a real dark palette?

A real palette. Inversion preserves the relationships but not the intent: pure white becomes pure black, and saturated accents become their loudest opposites. Use the inverted version as a reference, then hand-tune.

Can I invert just one colour in an image?

Not with this tool — it is a whole-pixel operation. For a single colour you need a hue-selection mask in an editor, or you can invert the swatch here and paint it back in.

Why is #808080 not exactly reversible?

Because 255 − 128 = 127. Mid-grey sits half a step off centre in an 8-bit range, so the complement is #7F7F7F. Inverting that again returns #808080, so the pair is stable even though the two greys differ by one.

What comes next

A server-side API and a desktop batch runner are planned. The browser tool above stays free and unlimited: no account, no watermark, no file cap.

Free, permanently

Full resolution, all six modes, batch and ZIP. If a page ever asks you to register to invert an image, it is not this one.