Simple jQuery Color Variation

Simple jQuery Color Variation


I am creating a UI in which users have the ability to change color
values of their pages. What I would like is to take the value assigned
to their background color and lighten it a certain amount. I am just
looking to achieve a highlight line without having to make new images
every time.
Example: The user set the background color to #ECECEC. Now I want a
certain elements border to become #F4F4F4 (A color closer to white).
Please let me know if their is a good way to do this with jQuery,
Javascript, or even PHP.
Thanks,
Brad Birdsall