let say I have #404040 color code. How to generate a new color code which is either lighter or darker by 20% (or given x%)? I need this for generate a hover color in a dynamic site (which color is changing using theme). Therefore it is not possible to use another class or :hover with predefined class.
Thanks
Best Answer
Now handles RGB(A) input, as well as hex (3 digit or 6).