Is it possible to use JavaScript to convert a batch of hex colour codes using a filter such as the feColorMatrix effect, into hex codes of colours that are desaturated/saturated accordingly?
I would like to convert a batch of hex colour codes into colours that are desaturated/saturated according to a filter such as a colour matrix. This visual effect can be achieved using SVG filters, but I hope to find a way to convert the actual hex codes using pure JS. Here is: codepen.io/anon/pen/aXEPvg, readapted by Sakal.