0
How can I change the color of a text according to the background color in which it is inserted?
I’ve seen this a few times. It works like this: if the background is clear, the text turns black, and if it’s dark, the text turns white.
I tried looking for the site in question, but I forgot. It was more or less like this: The text stood on top of an article cover, so, as the article cover may vary in color, the text adapted to the background (image)
How is it done?
I don’t know if it would be duplicate, but I believe it solves your problem: How to find out if a hexadecimal color is dark or light?
– Woss