Free Color Extraction Tool

Yarn Color Palette from Photo

Upload any photo — a sunset, a garden, a favorite sweater — and instantly pull out a harmonious 6-color palette to guide your next knitting or crochet project. Runs entirely in your browser, so your images stay private.

Upload a Photo
Your image is processed entirely in your browser — nothing is uploaded to a server.

Drag & drop a photo, or click to browse

JPG, PNG, or WebP — sunsets, yarn stashes, and landscapes work great

Your extracted palette will appear here.

How to Extract Colors from a Photo

Turning a photo into a usable yarn color palette takes three quick steps. The tool above does the math for you, but understanding the process helps you choose images that produce palettes you can actually knit or crochet with.

  1. Pick a color-rich photo. Sunsets, flower beds, autumn foliage, and landscapes give the cleanest results because they contain several distinct, well-lit hues.
  2. Upload it. Drag the image into the box above or click to browse. Everything is processed in your browser, so the file never leaves your device.
  3. Read the palette. The tool returns six dominant colors with hex codes. Click any swatch to copy its hex value for comparing against yarn brand color cards.

Matching Yarn to Your Palette

A hex code is a starting point, not a guarantee. Screens render color differently, and dye lots vary between batches, so always confirm with a physical reference before buying for a whole project. Most major yarn brands publish color cards online — match your extracted hex codes to the closest published shade, then order a single skein or a printed color card to verify in natural light.

Color Theory for Gradient Hats

The most striking gradient hats follow simple color relationships. Once you have your palette, arrange the colors with one of these approaches in mind:

  • Analogous blends — colors that sit next to each other on the wheel (red → red-orange → orange) flow smoothly and are the easiest gradients to knit. Perfect for a sunset-inspired hat.
  • Monochrome fades — a single hue from light to dark (pale rose down to deep burgundy) gives an elegant ombré effect with minimal color clashing.
  • Complementary accents — pair opposite colors (the Melt The Ice Hat's signature red against a touch of green or teal) to make a bold statement band or tassel.

Once your colors are chosen, plan the structure of the hat with our gauge to hat size calculator and shape the top cleanly using the crown decrease calculator.

Yarn Color Palette: Frequently Asked Questions

Keep Crafting

With your palette in hand, plan the rest of your hat and explore more colorful project ideas.

Melting Hat Patterns

Turn your palette into a gradient, ice-cream, or melting-heart hat with these creative variations.

Get Ideas

Gauge to Hat Size

Found your colors? Now nail the fit by converting your gauge into the perfect cast-on count.

Try Tool

Crown Decrease Calculator

Shape a clean, even crown for your finished hat with a custom decrease schedule.

Try Tool

This page contains AI-assisted content reviewed and edited by our team for accuracy and clarity.

Share the Melt The Ice Hat Pattern: