When a photograph contains 12 million pixels, over 70% of those pixels often belong to a single background gradient (such as a blue sky, dark studio backdrop, or foliage). A simple frequency sort produces a monotonous palette that misses the 3% vibrant focal accent that makes the composition pop.
Utiliome's Harmonious Palette Engine solves this in three stages:
- Sub-Sampled 24-Step Spatial Quantization: Samples non-transparent pixels (
alpha >= 128) across a normalized canvas grid and averages true RGB values within each cluster bin so output swatches reflect authentic photographic tones rather than artificial grid midpoints. - HSL Mood & Chroma Filtering: Converts candidate bins into Hue (
0°–360°), Saturation (0%–100%), and Lightness (0%–100%), allowing you to isolate Vibrant (S >= 35%), Soft Pastel (L >= 60%, S <= 75%), Warm (H <= 70°orH >= 310°), or Cool (70° < H < 310°) harmonies. - Minimum Euclidean Color Distance (
ΔE / ΔRGBGuardrail): Enforces a minimum 3D RGB vector separation between selected swatches so highlights, midtones, and accents are all represented.