Selecting Optimal Hex Matte Colors for Dark-Mode and Light-Mode JPEG Delivery
Quantifying Foreground Contrast Across Light and Slate UI Surfaces
When an e-commerce catalog, email newsletter, or legacy CMS requires opaque JPEG assets, choosing a single matte color determines whether semi-transparent shadows and anti-aliased strokes blend seamlessly into the page container. A pure #ffffff matte looks clean on white cards but leaves bright halos when mounted inside slate dark-mode headers (#204060 or #0f172a).
The Matte Comparator composites your decoded straight-alpha AVIF against two user-defined hex colors simultaneously in linear light, tabulating exact per-coordinate |ΔR, ΔG, ΔB| differences across transparent, mid-alpha, and opaque regions. You receive both the production MozJPEG encoded with your primary matte and a lossless side-by-side comparison PNG for design review.
- Computes coordinate-level RGB deltas at alpha=0 background regions and semi-opaque feather ramps.
- Emits both the ready-to-ship primary MozJPEG and a side-by-side A/B comparison PNG.
- Pairs directly with Preset Proof to lock your chosen hex backdrop into a reusable preset JSON.