The Universal Image Color Analyzer & Palette Extraction Studio is an advanced, privacy-first, client-side digital utility engineered for UI/UX designers, frontend developers, graphic artists, and digital marketers on RiazHub.com. Powered entirely by in-browser HTML5 Canvas (2DContext) and modern JavaScript vector math, it extracts dominant color palettes from any raster or vector image (JPG, PNG, WEBP, AVIF, SVG, BMP, GIF) in sub-50 milliseconds without sending a single pixel over the network.
The tool features dual mathematical clustering engines k-Means Vector Clustering with k-Means++ seeding for true volume-weighted color masses and Median-Cut Quantization for high-contrast accent preservation—alongside automated extraction of five harmonized semantic tones: Dominant, Vibrant, Muted, Light, and Dark. It includes an interactive 9×9 pixel magnification loupe eyedropper with real-time micro-region point/kernel sampling (1×1, 3×3, 5×5), an automated WCAG 2.1 Relative Luminance Contrast Matrix testing AA and AAA text compliance across white and black backgrounds, and a comprehensive Color Space Inspector translating every swatch into HEX, sRGB, HSL, HSV/HSB, CMYK (Print), modern Oklab, cylindrical Oklch, CIELAB ($L^*a^b^$), and McCamy’s Color Temperature (Kelvin). Finally, it exports production-ready design tokens in CSS Custom Properties, Tailwind CSS configuration, SCSS maps, JSON design tokens, binary Adobe Swatch Exchange (.ASE) palettes, and downloadable 1200×900 Lossless PNG Palette Cards.
Universal Image Color Analyzer & Palette Studio
Extract dominant color palettes with k-Means & Median-Cut clustering, inspect multi-space color values (HEX, RGB, HSL, HSV, CMYK, Oklab, CIELAB), verify WCAG 2.1 contrast ratios, and export design tokens with live pixel loupe sampling.
WCAG 2.1 Relative Luminance compliance audit. Standard body text requires minimum 4.5:1 (AA) or 7:1 (AAA). Large headings (18pt+ / 14pt bold) require 3:1 (AA).
| Color | HEX & RGB | On White (#FFF) | AA Normal | AA Large | On Black (#000) | AA Normal | Preview Sample |
|---|
Selected Color Inspector
// Code tokens will appear here...