Color Inverter
Enter a HEX, RGB, HSL or named sRGB color. Compare the original and inverted swatches and copy the inverse or CSS filter.
Invert an sRGB Swatch and Keep its Alpha
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
Preview composited on white. HEX stores alpha in 8 bits; decimal alpha is retained in RGB and HSL.
#7D9065rgb(125, 144, 101)hsl(86.512 17.551% 48.039%)rgb(49.02% 56.471% 39.608%)0.4902, 0.5647, 0.3961, 1--color: #7D9065;Color names use standard CSS keywords, such as red or rebeccapurple.
Color Inverter: how to use it
- Paste an sRGB color or load the translucent example.
- Compare the swatches and read the inverted HEX, RGB and HSL.
- 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.