Last spring a client asked me for a dark theme on a site that had only ever been light. They gave me four brand colors, a deadline, and one request: "make it feel the same, just dark." I did what many freelancers do in a hurry. I opened a tool, typed in the hex codes, and started to invert image swatches to see what came out. This post is about what that shortcut gave me, and where it let me down.
The shortcut
The idea is simple. Inversion subtracts each channel from 255. A light cream becomes a deep brown, a bright blue becomes a soft orange. The result is not a design, but it is a fast way to see what an "opposite" palette looks like.
For hex codes I used the hex inverter on the invert image page. You type a hex value, read the inverse and copy it. No account, no watermark, and as far as the page says, nothing leaves the browser for local files. For a quick sanity check on a client's palette, that is about as light as tools get.
What worked
It showed me contrast relationships. When a cream background became a dark brown, I could see immediately which text colors would likely stay readable. It gave me a first draft for surfaces in minutes.
It started a conversation. I showed the client two swatch sheets: the original and the flipped version. They pointed at the flipped orange and said, "that is actually closer to our old logo." I would never have tried that color myself.
It was a good test of my assumptions. I thought the dark theme would need only a couple of changes. The flipped swatches made me look at every color in the palette, and I found two accents that were too close together in the dark version.
What did not work
A pure inversion is not a dark theme. A bright blue button turns orange, which can break the meaning your client has attached to the color. A green "success" tone turns magenta. Grey text stays grey, but at the wrong contrast. If you ship the raw numbers, the interface will feel wrong even if each color is technically the opposite.
So I treated the flipped colors as raw material. I moved them toward the brand hues by hand, then checked contrast ratios with a proper accessibility checker. The inverter gave me a starting point, not an answer.
Using the same idea on images
The same tool also handles images, so I tried it on the client's hero illustration and some flat screenshots in their docs. The tool accepts JPG, PNG, WebP, HEIC and TIFF up to 20 MB, and exports PNG, JPEG or WebP at the original pixel size. For the screenshots, PNG kept the transparency and edges clean. For the hero illustration, a partial flip using the strength slider felt closer to the brand than a full one. When I had a stack of small assets, the batch page took up to 30 images and gave me a ZIP, so I did not spend my evening clicking.
Three rules I follow now
- Treat inversion as a sketch. Use it to explore, never to ship.
- Keep meaning-carrying colors by hand. Success, error and warning colors should be chosen on purpose.
- Show the client both versions. A flipped palette is a cheap way to ask a better question.
A short note on professionalism
Clients do not pay me to press a button; they pay me to know when a button is not enough. If you use a shortcut, say so, and say what you did afterward. My client appreciated seeing the rough flipped swatches next to the final palette, because it explained the thinking.
If you work with palettes, I would like to hear what quick checks you rely on. When it comes to the humble invert image trick, I find it most useful as a conversation starter, and the final colors always need a human to decide.