Invert a color online
Use this color inverter to invert colors from any hex instantly. Get RGB negative output and copy inverted hex codes as HEX, RGB, or HSL.
What is a color inverter?
A color inverter applies RGB color inversion to a hex: each channel becomes 255 minus its value, so black becomes white and blue shifts toward orange. This page shows original and inverted swatches side by side so you can invert colors quickly and copy inverted hex codes for CSS or design tools—no install required. For whole images, use /invert-image-colors instead.
Color inverter features
Invert colors from any hex with instant RGB negative preview and one-click copy.
- Color picker and hex input: Choose visually or paste a six-digit hex—the inverted swatch updates instantly.
- One-step inversion: No slider—every pick runs full color inversion in one step.
- Side-by-side preview: Original and inverted colors shown together for quick comparison.
- Copy HEX, RGB, HSL: One-click copy for the inverted result in three common formats.
- RGB channel negative: Each channel becomes 255 minus the source—predictable reverse color output.
- No account: Free, unlimited previews in modern browsers.
How to invert colors from a hex
Two steps to get a fast color inverse result.
- Set the original color: Use the picker or paste a six-digit hex—brand colors and UI tokens both work.
- Copy the inverted result: Copy HEX, RGB, or HSL from the inverted panel into CSS, Figma, or code.
Tips for inverted colors
Better results when inverting hex values.
- Photos use another route: For whole images, open /invert-image-colors—same RGB negative on every pixel.
- Double invert resets: Paste an inverted hex back in to verify you return to the original.
- Not HSL complement: Need hue-wheel complementary pairs? Inversion is RGB math, not a 180° hue rotate.
- Paste from a picker: Sample on /image-color-picker, then paste the hex here for an instant inversion.
- Pair with greyscale: After inversion, desaturate on /greyscale-desaturate-color if you need a neutral variant.
- Check contrast: Inverted text on inverted backgrounds still needs readable pairs—use /contrast-checker when unsure.
When to invert a color
Typical uses for hex color inversion.
- Opposite color checks: Quickly answer questions like opposite color of green, red, blue, orange, or purple in RGB workflows.
- Dark mode accents: Derive a high-contrast accent from a light-theme brand hex for dark UI shells.
- Negative-style previews: See how a hue reads when reversed before building inverted palettes.
- Accessibility checks: Compare a foreground hex with its inversion against alternate backgrounds.
- CSS variables: Copy RGB or HSL of the inverted value into custom properties.
- Design handoff: Share inverted hex codes without manual 255 − channel math.
- Quick complements: Get a bold opposite for wireframes when you need a fast reverse color, not a full scheme.
Why use this invert color tool
Benefits of one-click hex inversion.
- Instant: No apply step—pick a color and copy the inverted result.
- Private: Colors never leave your device.
- Predictable output: Standard RGB negative every time—same math as image color inversion.
- Multiple formats: HEX, RGB, and HSL for different handoff workflows.
- Free: Unlimited previews and copies.
- Honest scope: Single hex inversion—not batch photo conversion.
Technical details
How hex inversion works here.
- Algorithm: Per channel: output = 255 − input (RGB negative).
- Input: Six-digit hex via picker or text field.
- Output: Inverted hex where each R, G, and B channel is negated.
- Output formats: Lowercase HEX, rgb(), and hsl() strings.
- Processing: Client-side only—no network requests.
- Browser support: Modern Chromium, Firefox, and Safari.
Frequently Asked Questions
Have questions? We have answers.
Related tools
More tools from Color Tools.