Best practice to set up an if-condition for fading colors?

How do I set up an if-condition to tell BTT to search for an image with a background which shifts slightly?

I chose "color_under_cursor" begins with ..." and switched to "ANY"

The background color has sometimes any variation from #727272 to #737373.

Please note that the circumstances I use this do not correlate with the actual "Other Current State" of the screenshot.

unfortunately there is currently no way to do that in a good way. You could probably get the color via javascript and run some similarity checks there, but that’s more complicated.

Maybe a good feature would be to allow for a certain difference when matching colors, but I need to think about how to implement something like that