Invert Colors
Enter a colour and instantly see its inverted equivalent — the colour you get by subtracting each RGB channel from 255. Shows a before/after swatch with HEX and RGB values for both.
Last updated: May 29, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is Invert Colors?
Colour inversion works by subtracting each RGB channel value from 255: inverted R = 255 − R, inverted G = 255 − G, inverted B = 255 − B. The result is the complementary colour on the RGB colour wheel — what you see when you look at the negative of a photograph.
Inversion is used in design for creating dark-mode colour variants, generating contrast pairs, building negative-image effects, and exploring complementary palettes.
How to Use Invert Colors
Enter a HEX code or use the colour picker
The inverted colour appears instantly with HEX and RGB values
Copy either colour for use in your project
Common Use Cases
- Dark mode designers generating an inverted colour for testing negative/dark variants.
- CSS developers finding the complementary colour for a border or shadow.
- Graphic designers creating negative image effects or contrast-maximising colour pairs.
- Accessibility reviewers checking the visual opposite of a brand colour.
Example Input and Output
Inverting a blue to find its RGB negative.
#3B82F6#C47D09RGB vs HSL inversion
This tool does RGB channel inversion (255−value). For hue-based complementary colours, use the Color Converter tool and shift the hue by 180°.
Browser-side only
All processing runs locally in your browser.

