Color Picker · Palette Extractor · Contrast Checker

Convert Hex · RGB · HSL · CMYK at once. Extract 8 dominant colors from any image. WCAG AA/AAA contrast checker.

Your image never leaves the browser. All color analysis runs locally with zero network requests and zero server storage.

Color Picker · 4-Format Live Conversion

[ AdSense ad slot ]

WCAG Contrast Check

vs White
-
vs Black
-

WCAG 2.1 · Body text: AA 4.5+, AAA 7+ · Large text (18pt+ or 14pt+ bold): AA Large 3+, AAA 4.5+

Extract Palette from Image

Uploaded image preview

How to use — 3 flows

1

Color conversion

  1. Click the color picker or type a Hex code directly
  2. 4 codes (Hex·RGB·HSL·CMYK) shown instantly
  3. Click any code box → copies to clipboard
2

Image palette extraction

  1. Drag-drop or click to upload an image
  2. Top 8 dominant colors auto-extracted
  3. Click any swatch → loads into the picker
3

WCAG contrast check

  1. Pick a color → contrast auto-computed
  2. Shows grade vs white & black backgrounds
  3. Body text should be AA 4.5+

Common use cases

🎨
Designers — Quick conversion

Convert Hex ↔ RGB ↔ HSL outside Figma/Photoshop. No workflow break.

📸
Bloggers · Creators

Extract 8 colors from movie posters or photos → unified SNS/blog header palette.

💻
Web developers

Map design palettes → Tailwind config · CSS variables (--brand).

Accessibility · UI/UX

Hit AAA contrast → friendly to visually impaired & elderly users. Affects AdSense RPM.

📈
Marketers

Pull core colors from competitor ads → trend tracking, palette analysis.

🏠
Interior · Fashion

Extract main colors from clothing or interior photos → find matching color codes.

📚
Students · Design study

Learn Hex hex notation · RGB mixing · HSL hue · WCAG accessibility while using the tool.

Color code formats — when to use which?

Hex Basic
#3F6F54

6-digit hex (R·G·B 2 each). CSS·HTML standard, shortest.

RGB JS
rgb(63, 111, 84)

Decimal 0-255. JS·SVG·canvas, supports alpha (RGBA).

HSL Adjust
hsl(146, 28%, 34%)

Hue 0-360°·saturation·lightness. Easier lighter/darker tweaks.

CMYK Print
38, 0, 24, 56

Cyan·Magenta·Yellow·Black. Print mockup (apply ICC for press).

WCAG contrast grades

WCAG 2.1 — measures readability by luminance ratio between text & background.

AAA 7.0+
Enhanced accessibility — medical, government, public sites
AA 4.5+
Body text standard — typical site/blog target
AA Large 3.0+
Large text (18pt+ or 14pt+ bold)
Fail < 3.0
Poor readability — avoid

Note: AdSense also uses readability as a quality signal. Low contrast → lower RPM/CTR.

Palette extraction algorithm

16-step RGB quantization + frequency sort

Lightweight and consistent — no heavy ML like k-means.

STEP 1Resize image to 100×100 px on canvas
STEP 2Quantize each pixel's RGB to 4 bits (16 steps)
STEP 3Count pixel frequency per bin
STEP 4Return top 8 bins' average RGB
✓ Pros
Sub-50ms speed · deterministic results · zero external libraries
△ Limits
Slightly lower hue-cluster accuracy than k-means (sufficient for typical use)

Common color systems

Tailwind CSS
slate-500: #64748B
blue-600: #2563EB

10-step lightness scale. Developer-friendly.

Material Design
Indigo 500: #3F51B5

Google guidelines. Android-friendly.

iOS Human Interface
System Blue: #007AFF

Apple system colors. iOS/macOS recommended.

Pantone
Living Coral 16-1546

Print/fashion industry standard (license required).

Related tools

FAQ

Hex vs RGB?

Same color, different notation. Hex is hexadecimal (#3F6F54), RGB is decimal (rgb(63,111,84)). Hex is shorter for CSS/HTML; RGB is easier when manipulating colors in JavaScript or canvas. Both interchangeable.

WCAG AA / AAA grade thresholds?

WCAG 2.1 body text: AA 4.5+, AAA 7+. Large text (18pt+ or 14pt+ bold): AA Large 3+, AAA 4.5+. This tool computes contrast against white and black; AA is the common target, AAA is enhanced accessibility.

How does image palette extraction work?

Canvas resizes the image to 100×100, then quantizes each pixel's RGB to 16 levels per channel (4 bits each). Top 8 most populated bins are averaged and returned. Faster than k-means and produces visually consistent results for small palettes.

Is my image uploaded?

No. FileReader loads the image into memory, canvas analyzes pixels, results display in browser. Zero network requests, zero server storage. Verify in DevTools Network tab.

Does it work on mobile?

Yes. iOS Safari and Android Chrome both supported. Pick directly from camera roll. Color picker uses OS native picker (iOS 14+, Android 8+ recommended).

Is the CMYK conversion accurate?

RGB → CMYK is a basic math conversion and won't match actual print color spaces (ICC profiles). For print press, use professional tools (Adobe, Affinity) with proper ICC application. The CMYK shown here is an approximate reference.

References

Copied