Find a color and replace with a variable?

Hey friends,

I’m desperately looking for a plugin capable of replacing a pure hex code color with a variable. I’ve tested a bunch of plugins, but none of them work well.

Oh, yes, I’ve tried the simple “select all” and “show all colors in the selection,” but it looks like it doesn’t work properly when your selection is huge.

Any tips?
Thanks!