WebToolsPlanet
Color Tools

Color Inverter – Find the Inverted Color of Any Color

Enter a HEX, RGB or HSL color to calculate its exact RGB inverse. Compare the original and inverted colors side by side, copy the result, and explore common inverted colors such as blue, green, yellow, orange and pink.

Last updated: September 18, 2026

Client-Side Processing
Input Data Stays on Device
Instant Local Execution

Find this tool useful? Support the project to keep it free!

Buy me a coffee

What 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. This is a different calculation from the complementary colour on the HSL colour wheel, which rotates the hue by 180° instead — this tool shows both results separately so you can see how they differ. The RGB inverse is also what you see when you look at the negative of a photograph.

Inversion is used in design for exploring dark-mode colour variants, generating candidate contrast pairs, building negative-image effects, and comparing a colour against its hue complement.

How to Use Invert Colors

1

Enter a HEX code, RGB/HSL value, or use the colour picker

2

The inverted colour, hue complement, and a readable-text recommendation appear instantly

3

Copy any value for use in your project

Common Use Cases

  • Dark mode designers generating an inverted colour as a starting point, not a finished dark theme.
  • CSS developers finding the hue complement for a border or shadow.
  • Graphic designers creating negative image effects or a candidate high-contrast pair — verify with the Contrast Checker before using it for text.
  • Accessibility reviewers checking the visual opposite of a brand colour, then confirming actual contrast separately.

Example Input and Output

Inverting a blue to find its RGB negative.

Original colour
#3B82F6
Inverted colour
#C47D09

What Is the Inverted Color of Blue?

Pure blue (#0000FF) has RGB values (0, 0, 255). RGB inversion subtracts every channel from 255, giving (255, 255, 0) — which is #FFFF00, yellow.

This is the mathematical RGB inverse, not the hue complement. Blue's hue complement (its opposite on the colour wheel) is a warm orange instead — the tool shows both results separately above so you don't have to guess which one you meant.

What Is the Inverted Color of Green?

Pure RGB green (#00FF00) inverts to #FF00FF, magenta.

Many people mean a darker shade when they say "green." The standard CSS named colour green is (#008000), not (#00FF00), and it inverts to a different result: #FF7FFF, a light magenta. Enter your exact green above to get the precise inverse for your own shade.

What Is the Inverted Color of Yellow?

Pure yellow (#FFFF00) has RGB values (255, 255, 0). Inverting each channel gives (0, 0, 255) — #0000FF, blue.

What Is the Inverted Color of Orange?

For the common orange (#FFA500), RGB (255, 165, 0) inverts to (0, 90, 255) — #005AFF, a blue-toned colour. Different oranges invert to different results, so this figure applies specifically to (#FFA500); enter your own shade above for an exact answer.

What Is the Inverted Color of Pink?

For the standard CSS pink (#FFC0CB), RGB (255, 192, 203) inverts to (0, 63, 52) — #003F34, a dark teal-green. Different pinks invert to different results, so enter your exact shade above for a precise answer.

Opposite Color Finder

People searching for an "opposite color" usually mean one of two different things: the mathematical RGB inverse (255 − each channel), or the hue complement — the opposite hue on the colour wheel, 180° away. These are not the same colour. Enter any HEX, RGB, or HSL value above to see both results side by side, so you don't have to guess which one was meant.

RGB 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°.

The calculation, worked through

For #3B82F6 (R 59, G 130, B 246): inverted R = 255 − 59 = 196 (0xC4), inverted G = 255 − 130 = 125 (0x7D), inverted B = 255 − 246 = 9 (0x09) — giving #C47D09. This is the exact example shown above; you can reproduce it by picking "Blue" from Popular Presets.

Alpha and short HEX input

3-digit (#RGB), 4-digit (#RGBA), 6-digit (#RRGGBB), and 8-digit (#RRGGBBAA) HEX are all accepted, along with rgba()/hsla(). Alpha is not one of the three inverted channels — it passes through unchanged on the original colour and is re-applied when checking contrast, so an input with 50% alpha still shows a fully opaque inverted swatch value.

Browser-side only

All processing runs locally in your browser.

Frequently Asked Questions

What is an inverted color?

An inverted color is the mathematical negative of a color: subtract each RGB channel from 255. It is the same operation used to create a photo negative, and it is different from a color's hue complement, which comes from rotating the hue by 180° instead.

Is inversion the same as complementary colour?

RGB inversion (255−channel) is not the same as the HSL complementary (H+180°). Inversion gives the mathematical negative; the HSL complement gives the opposite hue on the colour wheel. This tool shows both.

What is the opposite of a HEX color?

There is no single "opposite" — it depends whether you mean the RGB inverse (255 minus each channel, e.g. #0000FF → #FFFF00) or the hue complement (the opposite hue on the color wheel). This tool calculates and shows both for any HEX value you enter.

What happens when I invert white or black?

Inverting white (#FFFFFF) gives black (#000000) and vice versa, since 255−255=0 and 255−0=255.

Does inverting a color twice return the original?

Yes. RGB inversion is its own inverse: 255 − (255 − channel) = channel. Invert any color twice and you get back the exact original value.

Does the inverted colour guarantee readable contrast?

No. Check the contrast ratio shown next to the result, or use the full Color Contrast Checker for a complete foreground/background review.

Are inverted colors automatically accessible?

No — an inverted color can have worse contrast than the original, not better. Never assume an inversion is readable; always check the contrast ratio shown next to the result before using it for text or UI.

Can I invert an entire color palette?

Yes — use the batch inversion panel below the main tool. Paste 2-10 HEX, RGB, or HSL values (one per line, or comma-separated) to get the RGB inverse and complementary palette for all of them at once, with CSS, JSON, CSV, and PNG export.

Is my data sent to a server?

No. All processing runs in your browser.

What is the inverted color of red, blue, green, or another common color?

For the standard CSS named-color hex values: red (#FF0000) inverts to cyan (#00FFFF), blue (#0000FF) inverts to yellow (#FFFF00), green (#008000) inverts to light magenta (#FF7FFF), yellow (#FFFF00) inverts to blue (#0000FF), brown (#A52A2A) inverts to teal (#5AD5D5), purple (#800080) inverts to light green (#7FFF7F), orange (#FFA500) inverts to blue (#005AFF), and pink (#FFC0CB) inverts to dark teal (#003F34). Enter your exact shade above for a precise result, since these vary between different reds, greens, etc.

Can I invert the colors of a whole image or photo, not just one color code?

This tool inverts a single HEX, RGB, or HSL value. To invert every pixel in a photo or screenshot, use the Image Filters tool instead and set its Invert slider to 100%.

How do I turn on inverted colors on my device?

Device-wide color inversion is an accessibility display setting, different from this color calculator. It is usually available under Accessibility or Display settings on phones, tablets, and computers — the exact steps vary by device and operating system version.