VOOZH about

URL: https://apify.com/web.harvester/color-palette-extractor

โ‡ฑ Color Palette Extractor - Dominant Colors from Images ยท Apify


Pricing

$3.00/month + usage

Go to Apify Store

Color Palette Extractor

Extract dominant colors from images using K-means clustering. Get color palettes in HEX, RGB, and HSL formats with color names and percentages.

Pricing

$3.00/month + usage

Rating

0.0

(0)

Developer

๐Ÿ‘ Web Harvester

Web Harvester

Maintained by Community

Actor stats

0

Bookmarked

4

Total users

0

Monthly active users

4 months ago

Last modified

Share

๐ŸŽจ Extract dominant colors from images using K-means clustering

๐Ÿ‘ Apify Actor

What This Actor Does

  • Extract dominant colors - Find the most prominent colors in any image
  • Multiple formats - Output in HEX, RGB, and HSL color formats
  • Color names - Get human-readable color names (e.g., "Navy Blue", "Forest Green")
  • Customizable - Control number of colors, quality, and filtering options
  • Batch processing - Analyze multiple images at once

Use Cases

Use CaseDescription
Brand AnalysisExtract brand colors from logos and marketing materials
Design InspirationGenerate color palettes from photos and artwork
E-commerceCategorize products by color
Content ModerationDetect dominant colors in user-uploaded images
Data VisualizationCreate color schemes based on image themes

Input Examples

Basic Usage

{
"imageUrls":["https://example.com/image.jpg"],
"colorCount":5
}

High Quality Analysis

{
"imageUrls":["https://example.com/image.jpg"],
"colorCount":8,
"quality":"accurate",
"includeColorNames":true
}

Exclude Neutrals

{
"imageUrls":["https://example.com/image.jpg"],
"colorCount":5,
"excludeWhite":true,
"excludeBlack":true,
"minSaturation":0.2
}

Configuration

ParameterTypeDefaultDescription
imageUrlsarray-URLs to images (required)
colorCountinteger5Number of colors to extract (1-20)
qualitystring"balanced"fast, balanced, or accurate
excludeWhitebooleanfalseExclude near-white colors
excludeBlackbooleanfalseExclude near-black colors
minSaturationnumber0Minimum saturation (0-1)
outputFormatsarray["hex","rgb","hsl"]Color formats to include
includeColorNamesbooleantrueInclude color names

Output

{
"source":"https://example.com/starry-night.jpg",
"success":true,
"colorCount":5,
"dominantColor":"#1a3a5c",
"palette":[
{
"percentage":35.2,
"hex":"#1a3a5c",
"rgb":{"r":26,"g":58,"b":92},
"hsl":{"h":211,"s":56,"l":23},
"name":"Dark Slate Blue"
},
{
"percentage":22.8,
"hex":"#f4d03f",
"rgb":{"r":244,"g":208,"b":63},
"hsl":{"h":48,"s":89,"l":60},
"name":"Gold"
}
]
}

Quality Settings

QualityResize ToSpeedAccuracy
fast100pxFastestGood
balanced200pxMediumBetter
accurate400pxSlowerBest

Color Formats

FormatExample
HEX#1a3a5c
RGB{ "r": 26, "g": 58, "b": 92 }
HSL{ "h": 211, "s": 56, "l": 23 }

Cost Estimation

ScaleImagesCompute Units
Small10~0.001
Medium100~0.01
Large1000~0.05

Technical Details

  • Language: Python 3.12
  • Libraries: Pillow, scikit-learn, webcolors
  • Algorithm: K-means clustering
  • Memory: 256MB-512MB

Supported Image Formats

  • JPEG / JPG
  • PNG
  • GIF
  • WebP
  • BMP
  • TIFF

Keywords: color, palette, extract, dominant, kmeans, image, design, hex, rgb, hsl

You might also like

Site Color Palette Extractor

rainminer/site-palette-extractor

Extract the dominant color palette from any website or image URL. Analyzes og:image, favicon, and meta theme-color. Returns one row per swatch with hex, RGB, and population. Built for AI agents and design automation.

CSS Color Extractor

automation-lab/css-color-extractor

Extract every CSS color from a website โ€” hex, RGB, HSL, and named colors from inline styles and linked stylesheets. Returns a deduplicated palette with usage counts and CSS properties.

๐Ÿ‘ User avatar

Stas Persiianenko

21

Ai Color Palette Generator

calm_necessity/ai-color-palette-generator

Generate professional color palettes using AI from text descriptions. This Actor creates structured color suggestions with hex codes, names, categories, and similarity scores, making it ideal for branding, UI/UX design, web development, and automated design workflows.

๐Ÿ‘ User avatar

Taher Ali Badnawarwala

3

Color Palette Fashion Finder

wild_yapok/color-palette-fashion-finder

Find clothing items that match your color palette from top fashion retailers. Specify colors by + name or hex codes + , and this Actor will search Zara, H&M, ASOS, and Shein for matching products using advanced color + similarity algorithms

๐Ÿ‘ User avatar

Dominik Hajczuk

146

Color Converter Input

moving_beacon-owner1/color-converter-input

A versatile tool for converting colours between HEX, RGB, and HSL formats while generating harmonious colour palettes.

2

Color Converter All Values

bou-korinna/color-converter-all-values

Color Converter All Values

๐Ÿ‘ User avatar

Christopher Stevens

7