Palette Extraction and Presets
Creativity Land provides two ways to build color palettes:
•Extract colors from an uploaded image
•Select a palette from the built-in preset library
These tools are useful for branding, user interface design, illustration, and visual inspiration.
Extracting Colors from an Image
The Palette tool analyzes uploaded image pixels and generates representative colors.
How to Use
- Open Palette.
- Upload an image.
- Set the desired number of colors.
- Click Extract.
- Review the generated swatches.
- Copy the palette as HEX values or JSON.
Number of Colors
| Setting | Value |
|---|---|
| Minimum | 3 |
| Maximum | 128 |
| Default | 12 |
Enter the requested number in the Colors field.
The actual number of returned colors may be lower if the image does not contain enough distinct color groups.
How Extraction Works
The implementation uses image sampling, color quantization, and weighted clustering.
Processing Stages
- The uploaded image is scaled into the preview canvas.
- Pixel colors are grouped into quantized color bins.
- A weighted color histogram is generated.
- A weighted k-means clustering procedure estimates representative colors.
- Colors are ordered according to cluster weight.
- The resulting colors are displayed as swatches.
The implementation uses 16 quantization levels per RGB channel during histogram construction.
This reduces the amount of color information processed while preserving useful color groupings.
Why Extracted Colors May Differ
The generated palette is an approximation of the image's dominant color distribution.
Results may depend on:
- Image content
- Image scaling
- Color quantization
- Requested palette size
- Randomized clustering initialization
Repeated extractions can produce somewhat different results.
Exporting Extracted Colors
Copy HEX List
Click Copy HEX list to copy the palette as comma-separated HEX values.
Example:
#3B82F6, #22D3EE, #10B981Copy JSON
Click Copy JSON to copy a JSON array.
Example:
[
"#3B82F6",
"#22D3EE",
"#10B981"
]Preset Palette Library
The Presets tab contains ready-made color combinations organized into categories.
Available Categories
The supplied preset library includes:
| Category | Design Direction |
|---|---|
| Warm | Reds, oranges, and golden tones |
| Cool | Blues, greens, and cyan tones |
| Pastel | Soft, light color combinations |
| Earth | Natural and earthy colors |
| Mono | Related shades within a color family |
| Brand | General-purpose branded palettes |
| Vintage | Classic and nostalgic combinations |
| Retro | Bold retro-inspired palettes |
| Muted | Subdued color combinations |
| Vibrant | High-energy, colorful palettes |
| Metallic | Metal-inspired colors |
| Nature | Plant and landscape-inspired colors |
| Ocean | Marine color combinations |
| Desert | Sand and canyon-inspired colors |
| Food | Food-inspired combinations |
| Seasonal | Seasonal color themes |
Example Presets
Sunset Glow
#FF6B6B
#F7B267
#FFD166
#F79D65
#A44A3FNordic Sea
#0EA5E9
#38BDF8
#22D3EE
#34D399
#10B981Forest Trail
#2F3E46
#354F52
#52796F
#84A98C
#CAD2C5Browsing Presets
Use the category selector to filter the library.
The search field can find palettes based on their names or HEX color values.
Click Shuffle to rearrange the displayed presets.
Applying a Preset
Click a preset card to:
- Set its first color as the Color Lab base color.
- Update the Quick Tools harmony base.
- Make the selected preset available as the shared palette.
- Attempt to copy the preset colors as JSON.
The selected preset's full color array is retained for shared palette export, while Color Lab can generate a harmony from the preset's first color.
Selecting Individual Colors
Click an individual color swatch to copy its HEX value.
Recommended Uses
| Goal | Suggested Method |
|---|---|
| Match an existing photograph | Palette Extraction |
| Choose website brand colors | Presets and Color Lab |
| Build a UI theme | Presets followed by Contrast Check |
| Design from an illustration | Palette Extraction |
| Explore color styles quickly | Presets |
Tip: Image-derived colors are excellent starting points, but text and interface colors should still be evaluated for sufficient contrast.
Updated 9 days ago
