So i’ve got a page with a filter:invert(1) on it.
Can i derive what the hex value of the inverted color is? I like the look of some of the inverted colors, but not others, and would like to replicate the inverted values of some elements without filtering everything.
IE: The page will tell me the background is #f1ebe8eb. What’s the invert(1) of #f1ebe8eb? Is it just 0xFF-(R) 0xFF-(G) 0xFF-(B) A?
Assuming 0 <= R <= 255, then all that just boils down to your original: R’ = 255-R, wouldn’t it?
[oh wait, dumb answer. I didn’t read your comment correctly]
By the way, I did confirm (sticking the images in Photoshop and looking at the rgb values) that on a white background the transparency value holds as is, again just like your original guess. I did not try this on a colored background or with any more than just your one example color
See if this works:
Let R = original color component, say Red
Let R’ = 100% inverted color = abs (R-255)
Let R’’ = color component using invert(i) = (1-i)R+iR’