I want to determine if a given font colour is unreadable against a given background colour.
Supposed a given background color and foreground colours of #000000. It is trivial to do an equality check. However, the human eye is capable of determining if a range of background colors will make a black font unreadable.
One way of doing this is by using OCR simply by relying if the exact text is extracted. The logic is that if the OCR can read it, so can a human eye.
Is there a faster alternative?
I have tried using OCR but this method is not as efficient.