FIRST CH TOOLS / Design / 45 PALETTE EXTRACTOR
Image Colour Palette Extractor
Pull the main colours out of a reference screenshot or a logo you were handed — up to eight of them. Copy each colour as HEX, RGB or OKLCH, and read the contrast ratio against white and black text right beside it. The image stays on your device.
How to Use
- Add an imageDrag & drop a screenshot or photo, click to pick a file, or paste one with ⌘/Ctrl+V.
- Choose how many coloursPick 2 to 8 and the palette is rebuilt straight away. Leave the checkbox on when a white background or heavy shadow gets in the way.
- CopyCopy HEX, RGB or OKLCH per colour, or take the whole palette as CSS custom properties or JSON.
About This Tool
The image is scaled down to about 25,600 pixels, drawn on a canvas, and sorted with median cut quantisation: the RGB box holding the pixels is split in half again and again, always taking the box with the largest "pixel count × widest component", and the average colour of each remaining box becomes one palette entry. The same procedure handles a continuous-tone photograph and a flat logo with four colours in it. Entries are ordered by how much of the image they cover, and the band at the top is sized by the same proportion.
"Ignore near-white and near-black pixels" drops pixels that are close to neutral and either very light or very dark — paper white, the white background of a screenshot, the shadow that fills half a photo — so that the brand colours come through. If it filters out everything, turn it off.
OKLCH states lightness, chroma and hue the way the eye reads them, which makes it the easy notation for shifting brightness while keeping the hue. Single-colour conversion and tone palettes live in the Color Converter, and the CSS Gradient Generator takes the colours you pulled here and blends them. The contrast ratios shown against white and black text use the WCAG 2.1 formula; body text usually wants 4.5:1 or better (the full check is in the Contrast Checker).
Decoding and quantisation both run in your browser and nothing is uploaded. The settings can be passed in the URL (you still choose the image locally), e.g. /en/palette/?n=8&skip=0.
Other Tools
- 01WebP Converter画像→WebP一括変換
- 02White Background RemoverWhite BG Remover
- 03WCAG Contrast CheckerContrast Checker
- 04Character CounterCharacter Counter
- 05llms.txt Generatorllms.txt Generator
- 06JSON-LD GeneratorJSON-LD Generator
- 07Markdown → PDFMD → PDF
- 08OGP Meta Tag WizardOGP Wizard
- 09Favicon GeneratorFavicon Generator
- 10TikTok PublisherTikTok Publisher
- 11Encoding & Line Ending ConverterEncoding Converter
- 12Batch Image → AVIF ConverterAVIF Converter
- 13Test Data GeneratorTest Data Generator
- 14Marp Markdown → SlidesMarp Slides
- 15Text & Code Diff CheckerDiff Checker
- 16Cron Expression ExplainerCron Explainer
- 17Base64 & Data URI EncoderBase64 & Data URI
- 18URL Parameter Editor & UTM BuilderURL Parameters
- 19HTML Entity Escape & UnescapeHTML Escape
- 20JSON ⇄ YAML ConverterJSON ⇄ YAML
- 21PX ⇄ REM / EM ConverterPX ⇄ REM / EM 単位変換
- 22Color Converter & AlphaColorコード変換&アルファ透過
- 23MD5 / SHA-256 Hash Generatorハッシュ生成
- 24JWT Decoder & Expiry CheckerJWTデコーダー&有効期限チェッカー
- 25User-Agent ParserUser-Agent解析&デバイス判定
- 26UUID & ULID GeneratorUUID (v4) & ULID 一括生成
- 27Aspect Ratio Calculatorアスペクト比計算&サイズ算出
- 28Markdown Table & CSV/TSV ConverterMarkdownテーブル整形&CSV/TSV変換
- 29SQL Query FormatterSQLクエリフォーマッター&整形
- 30QR Code GeneratorQR Code Generator
- 31Regex Tester正規表現テスター
- 32Unix Timestamp ConverterUNIXタイムスタンプ⇄日時変換
- 33New Tab Memo — Chrome Extension新規タブメモ帳 Chrome拡張
- 34Image Resizer & Cropper画像リサイズ&クロップ
- 35EXIF Viewer & RemoverEXIF情報の確認&除去
- 36robots.txt Generatorrobots.txt ジェネレーター
- 37Password Generator安全なパスワード生成
- 38Case Converter文字列ケース変換
- 39CSV/TSV ⇄ JSON ConverterCSV/TSV ⇄ JSON 相互変換
- 40PDF Merge, Split & ExtractPDF結合・分割・ページ抽出
- 41Full-width ⇄ Half-width Converter全角⇄半角変換&テキストクリーナー
- 42X (Twitter) Post CounterX(Twitter)投稿の文字ウェイト計算
- 43CSS clamp() Fluid Typography CalculatorCSS clamp() 計算機
- 44CSS Gradient GeneratorCSSグラデーションジェネレーター