Reshader is a micro, highly-customisable JavaScript library to get the shades of colors.
Website Demo