Posted in Tool Documentation
4:34 am, August 16, 2022

CSS Filter Generator from Hex Code

I was looking for a quick way to apply a new color to a PNG image, which i did not really want to have to edit and thought there might be a CSS solution. 

I found a tool for this here CSS Filter Generator from Hex Code, so all you have to do is add your hex code to this tool and it will generate a filter for you. 

Basically all you need is the hex code. 

Paste it into the tool and it will generate a filter. 

now grab the generated filter and apply it to a css class. 


.logochange { filter: invert(40%) sepia(89%) saturate(665%) hue-rotate(153deg) brightness(104%) contrast(103%); }

I moved this code into a code snippet here to show how it works with the logo image. 

View Statistics
This Week
This Month
This Year

No Items Found.

Add Comment
Type in a Nick Name here
Other Items in Tool Documentation
Search Articles
Search Articles by entering your search text above.

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕


🪦 2000 - 16 Oct 2022 - Boots
Random Quote
Even if you fall on your face, you're still moving forward.
Victor Kiam
Random CSS Property


The <length> CSS data type represents a distance value. Lengths can be used in numerous CSS properties, such as width, height, margin, padding, border-width, font-size, and text-shadow.
length#cm css reference