Outlier Color Mask
Detect and highlight rare/outlier colors in your image. Pixels that differ significantly from the average are revealed.
Drop an image in and the tool computes its average RGB, then flags every pixel that sits too far from that average. Slide the threshold to tighten or loosen what counts as an outlier, and switch between highlight, binary, or heatmap output. And everything runs in your browser. Nothing gets uploaded.
How to Use
Upload an image by dragging it onto the drop zone or clicking to browse your files.
Adjust the threshold slider to control sensitivity. Lower values detect more outliers; higher values only flag extreme differences.
Choose a mask mode -- highlight outliers in their original color, as a binary white/black mask, or as a heatmap showing distance intensity.
Download the outlier mask as a PNG image.
Frequently Asked Questions
What counts as an "outlier" color?
A pixel is considered an outlier when the Euclidean distance between its RGB values and the image's average color exceeds the threshold. The distance is calculated as sqrt((r-avgR)^2 + (g-avgG)^2 + (b-avgB)^2). Pixels with a distance greater than the threshold are flagged as outliers.
What do the different mask modes show?
"Highlight Outliers" shows the original color of outlier pixels on a black background. "Binary Mask" shows outlier pixels as white and normal pixels as black. "Heatmap" maps the color distance to a red-to-yellow gradient, showing how far each pixel is from the average.
How should I set the threshold?
Start with the default value of 60 and adjust from there. Lower values (20-40) will flag more pixels as outliers, useful for finding subtle color anomalies. Higher values (100-180) will only highlight very distinctly different colors. The outlier percentage readout helps you gauge sensitivity.
Does this tool upload my images?
No. All processing happens entirely in your browser using the Canvas API. Your images never leave your device and nothing is sent to any server. This makes the tool fast, private, and it works offline after the page loads.