Invert Text or Logo when background is dark

Hi is there a way to have my Logo invert when its on a darker background then the Logo colour?
Would be much appreciated if something has an idea :slight_smile:

Not sure but could work like this…

Take RGB-Colors!

If RGB-values are higher than —> 155 —> then do something…
Else do something else.

RGB-Color —> rgb(0, 100, 255)
R (red) ----> 0
G(green) → 100
B(blue) —> 255

Grey-Colors —> when all 3 are identical for example…
GREY —> rgb(100, 100,100) <— dark-grey
GREY —> rgb(200, 200, 200) <–light-grey

…and so on…