Convert Hex to CSS Filter Chain

Compute near-zero Delta-E CSS filter chains that tint monochrome black SVGs or HTML img icons to any target Hex color cleanly.

0 bytes sent
  • 100% browser-local
  • Zero server transfers
  • CSS Color 4 precision

or drop a color string, CSS/JSON snippet, or file here · Ctrl V to paste · Paste Hex, RGB, HSL, OKLCH or use Screen Eyedropper

Instant Before & After Specimen

SPSA Solver · Delta E Loss < 0.8
Input Sampleicon-cobalt.hex
#2563EB
Expected OutputOUTPUT
filter: brightness(0) saturate(100%) invert(29%) sepia(93%) saturate(3120%) hue-rotate(218deg) brightness(95%) contrast(94%);

How to use Hex to CSS Filter

Hex to CSS Filter — cleanly inside your local browser with zero server transfers.

  1. Enter or pick a colorType Hex, RGB, HSL, OKLCH, or Lab — or click Screen Eyedropper and live sliders.
  2. Inspect math & gamutReview exact CSS Color 4 readouts, sRGB vs Display P3 status, and profile options.
  3. Copy, chain, or exportCopy ready CSS/JSON snippets, download binary swatch files, or pipe directly to related Colr tools.
Format specs:HEX (.css / .txt)

Frequently asked questions

Why prepend brightness(0) saturate(100%) to the filter output?

It first flattens any arbitrary input icon color to pure #000000 so downstream invert and sepia transforms behave deterministically.

How close is the match to my target Hex?

Multiple randomized restarts optimize until CIEDE2000 loss typically falls below 0.8 (visually indistinguishable).