search
format_align_left
JSON Formatter CSS Formatter HTML Formatter JavaScript Formatter XML Formatter SQL Formatter Exception Formatter Markdown Preview & HTML to Markdown
data_object
JSON to Excel/CSV JSON to TypeScript, C#, Go, Java, Kotlin, Python & Dart JSON ⇄ YAML / TOML Converter JSON Diff – Compare Two JSON JSON Viewer & JSONPath Tester
table_chart
Excel/CSV to JSON Excel/CSV to SQL Excel/CSV to HTML
description
Compare text Text to Hex Text to Base64 Case Converter Regex Tester Vietnamese Accent Remover & Slug Generator Word Counter Line Tools: Remove Duplicates, Sort Lines Lorem Ipsum Generator
image
Convert Image Image to Base64 Converter Image Compressor Resize & Crop Image Favicon Generator Color Palette from Image EXIF Viewer & Remover
qr_code_2
QR Code Generator QR Code Scanner VietQR Bank Transfer QR Generator Wi-Fi QR Code Generator vCard QR Code Generator (Business Card) Barcode Generator (EAN-13, Code 128, Code 39)
lock
Convert Token Convert Hash Generate Password HMAC Generator (SHA-256, SHA-512) AES Encrypt / Decrypt Online Bcrypt Hash Generator & Checker
schedule
Convert datetime Timezone Info Vietnamese Lunar Calendar Converter Date Calculator Cron Expression Parser Countdown Timer
link
Encode and Decode URLs Shorten URL URL Parser & UTM Builder HTTP Header Checker
storage
Statistics Parser Statistics Compare SQL INSERT to JSON Converter SQL Table to C# / TypeScript / Java Class
travel_explore
Create Sitemap robots.txt Generator Meta Tag Generator Open Graph Preview
terminal
Number Base Converter UUID / ULID / NanoID Generator Chmod Calculator HTTP Status Codes
palette
Color Picker
help_outline
About UsPrivacy PolicyTerms of Service
THUTOOL
search

Color Palette from Image

🔒 Processed 100% in your browser – your data never leaves your device
palette
You can drag and drop Image file in here
Choose an image to extract its main colours

How to extract a colour palette from an image

  1. Choose or drop an image (photo, logo, screenshot).
  2. Set the Number of colours between 5 and 10. The palette updates instantly.
  3. Click a swatch to copy its HEX code, or click the HEX, RGB or HSL value you need.
  4. Copy the generated CSS variables or the HEX list for your stylesheet or design tool.

Example

A beach photo might give #2E7FB8 (sea), #E8D3A9 (sand) and #F4F7FA (sky). With the variable name brand you get --brand-1: #2E7FB8; and so on, ready to paste into :root.

FAQ

How are the colours chosen? The image is scaled down, transparent pixels are ignored, and the colours are grouped with median cut followed by k-means. The percentage shows how much of the image each colour covers.

Why don't I see a small accent colour? Small areas take up few pixels. Increase the number of colours or crop the image to the area you care about.

Is my image uploaded? No, the analysis runs in your browser.

Related tools

  • Convert ImageConvert images between PNG, JPG, GIF, BMP, TIFF, TGA and PBM online for free, with optional resizing. Fast, simple and no software install.
  • Image to Base64 ConverterConvert images (PNG, JPG, GIF, WebP, SVG, ICO) to Base64, data URI, CSS or HTML, and decode Base64 back to an image. 100% in your browser.
  • Image CompressorCompress JPG, PNG and WebP images in your browser. Set quality, convert to WebP/AVIF, compare sizes and download all as ZIP. No upload.
  • Resize & Crop ImageResize images by pixels or percent, crop to 1:1, 16:9, 4:3 or a free box, rotate and flip. Free and processed 100% in your browser.
  • Favicon GeneratorCreate favicon.ico, PNG icons from 16 to 512 px, apple-touch-icon, site.webmanifest and the HTML tags from one image. Download as ZIP.
  • EXIF Viewer & RemoverView EXIF data of a photo: camera, lens, settings, date and GPS location on a map. Download a copy with all metadata removed. No upload.
@Made by THUTOOL