Color Converter (HEX, RGB, HSL)→Specialized Version
🎨

Invert Color Tool

Invert colors

RGB
HSL

All formats

Inverted

#3B82F6
Original

Lightness variations

Invert Color Tool

Invert any color to get its RGB opposite. Color inversion subtracts each RGB channel from 255, creating the "negative" of the original color.

How Inversion Works

Invert formula: (255 - R, 255 - G, 255 - B)

OriginalInverted
#000000 (Black)#FFFFFF (White)
#FFFFFF (White)#000000 (Black)
#FF0000 (Red)#00FFFF (Cyan)
#0000FF (Blue)#FFFF00 (Yellow)

Inversion Examples

ColorHEXInvertedResult
Red#FF0000#00FFFFCyan
Green#00FF00#FF00FFMagenta
Blue#0000FF#FFFF00Yellow
Orange#FFA500#005AFFBlue

Use Cases

  • Dark mode: Invert colors for dark themes
  • Accessibility: High contrast alternatives
  • Design effects: Negative/photo effects
  • Color theory: Finding complementary-like pairs

CSS invert() Filter

``css .inverted { filter: invert(100%); }

/* Partial inversion */ .soft-invert { filter: invert(75%); } `

Invert vs Complementary

TypeMethodRed →
Invert255 - RGBCyan #00FFFF
ComplementaryHue + 180°Cyan #00FFFF
For pure colors, inversion equals complement. For others, results differ.

Inversion Is Not Dark Mode

Inverting a colour subtracts each channel from 255. It is a genuine operation with genuine uses — and building dark mode is not one of them.

`javascript const invert = ({ r, g, b }) => ({ r: 255 - r, g: 255 - g, b: 255 - b }); `

Inverting a whole interface produces washed-out photographs, inverted brand colours and text that is technically readable and visually wrong. Dark mode means a separate token set where surfaces darken, text lightens, and brand colours are *adjusted* rather than flipped.

Where inversion is genuinely right: high-contrast accessibility modes, image negatives, and picking a readable text colour over an unknown background — though for that, comparing contrast against black and white directly gives a better answer than inverting.

A Full Ramp From This Colour

Design systems settle on a 50–900 scale because it covers backgrounds, borders, text and states without anyone reaching outside the palette. Mixing toward white and black rather than adjusting HSL lightness keeps more of the hue's character:

StepColourContrast on whiteSafe for
50#F5F9FF1.06:1backgrounds and fills
100#EBF3FE1.12:1backgrounds and fills
200#CEE0FD1.34:1backgrounds and fills
300#B1CDFB1.62:1backgrounds and fills
400#76A8F92.40:1backgrounds and fills
500#3B82F63.68:1large text, borders
600#326FD14.85:1body text on white
700#295BAC6.59:1body text on white
800#2048878.98:1body text on white
900#18346212.31:1body text on white
The contrast column is the one that decides usage. Steps below 3:1 cannot carry text at any size and belong in fills and dividers; steps at 4.5:1 and above are safe for body copy.

Adjusting It

Base colour in HSL is hsl(217, 91%, 60%). Two useful moves:

`css /* +10% lightness, same hue */ --lighter: #6da2f8; /* −10% lightness */ --darker: #0b64f4; ``

Raising lightness also drops perceived saturation, so a lightened colour reads greyer than its numbers suggest. Adding 5–10% saturation alongside every 20% of lightness keeps the ramp looking like one hue rather than a fade to grey.

Frequently Asked Questions

What is color inversion?

Subtracting each RGB value from 255 to get the opposite color. Black becomes white, red becomes cyan.

Invert vs complementary?

Inversion is RGB-based (255 - value). Complementary is hue-based (rotate 180°). Results match for primaries, differ for others.

When to use inversion?

For dark mode conversions, high contrast effects, and creating negatives of images or colors.

Related Tools

Explore other tools you might find useful:

More Color Converter (HEX, RGB, HSL) tools

You might also need