In my app i want the users to select a base colour for elements to be displayed on a calendar. From the base colour the user has selected, i need to be able to automatically set an appropriate border colour, and an appropriate text colour.
When i mean appropriate i mean a darker tint or shade variation for the border
Are there any jquery plugins that do this already, or indeed any other plugins for another javascript library?
If not can people offer advice about how to go about doing the calculations? I’ve not got much experience in colour theory.
Thank you.
you can try this:
http://www.javascriptrules.com/2009/08/05/css-color-brightness-contrast-using-javascript/
or u can try this snippet:
or use this snippet: