Actually i want that, suppose i have a colorcode #FF3366. How can i examine that it is lighter or darker?
Actually i want to create a textfield and when the font color of the textfield is changed to lighter color by a javascript then the background color of the textfield becomes darker autometically for showing the value of the text field clearly and vise versa.
Please help me.
This formula is from years ago, in the W3’s site, but I can’t locate the address.
It sorts rgb colors from darkest to lightest. Works fine with just 2…