I have an aplication in which the customer chooses a color.
I can’t let this color be too light.
Is there a way to see this, to prevent the customer from chosing a color that is too light?
Thank you a lot!
too light in the case is a color almost white….i have a web site with a white background and the user can choose a color through a jquery plugin.
I want to allow the user to choose the color he wants, but cant be too light.
If contrast is what you are looking for then check out this article.
They show a function like this to choose text color based on any arbitrary color:
The above function will return true if the color is too light for white text to be readable on top of this color.