Color · Made a little simpler

Color Inverter

Enter a HEX, RGB, HSL or named sRGB color. Compare the original and inverted swatches and copy the inverse or CSS filter.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device
Original swatch#21436580
Inverted swatch#DEBC9A80

Subtract each 8-bit sRGB channel from 255. Alpha stays at 0.5019607843137255.

Inverted HEX
#DEBC9A80
Inverted RGB
rgba(222, 188, 154, 0.5019607843137255)
Inverted HSL
hsl(30 50.746% 73.725% / 0.5019607843137255)
CSS filter
filter: invert(100%);
Alpha
0.5019607843137255
#7D9065rgb(125, 144, 101)

Preview composited on white. HEX stores alpha in 8 bits; decimal alpha is retained in RGB and HSL.

HEX#7D9065
RGBrgb(125, 144, 101)
HSLhsl(86.512 17.551% 48.039%)
RGB percentrgb(49.02% 56.471% 39.608%)
Normalized RGBA0.4902, 0.5647, 0.3961, 1
CSS variable--color: #7D9065;

Color names use standard CSS keywords, such as red or rebeccapurple.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

Color Inverter: how to use it

  1. Paste an sRGB color or load the translucent example.
  2. Compare the swatches and read the inverted HEX, RGB and HSL.
  3. Copy the inverse or CSS filter. Select Invert the result to verify the original channels.

Limits and notes

Accepts supported sRGB forms including CSS names, HEX, RGB, HSL, HWB and HSV. Input channels are represented as 8-bit sRGB before inversion. Alpha remains unchanged. HEX stores it at 8-bit precision.

How your privacy works →

Color Inverter: common questions

What does #FF0000 invert to?

The red channel changes from 255 to 0. The green and blue channels go from 0 to 255, producing #00FFFF.

Does inversion make transparent pixels opaque?

Alpha stays the same, including zero for fully transparent colors.

Does inverting the result twice restore my color?

Applying the inverse twice returns the original three 8-bit channel values and alpha.

Guides