Free tool Printables and images

Color Palette from Image

Drop in a photo, mood board or listing image and get its main colors with their codes. Your image stays in your browser: it is never uploaded.

Your palette

Add an image to get its main colors.

    Order
    Colors to favor

    A new variation keeps your locked colors and picks the rest again.

    How to use the color palette tool

    1. Add an image. Drop it in the box, click the box to choose a file, or copy an image and paste it anywhere on the page with Ctrl V (Cmd V on a Mac). JPG, PNG, WebP and GIF files work, up to 50 MB and 100 megapixels. No image handy? Press Try a sample for a simple picture drawn by the page.
    2. Read the palette. The main colors appear right under the picture, each with its HEX code and the share of the image it covers.
    3. Adjust it. Pick from 3 to 12 colors, sort them by how much of the image they cover or from light to dark, and choose between True to the image and Favor vivid colors. Tick Ignore near white and near black backgrounds for a product shot on white or a design with a dark border.
    4. Pick exact colors. Click or tap anywhere on the picture to add that pixel's color. A magnifier shows the pixels around your pointer so you can hit a thin line or a small detail. With a keyboard, focus the picture and use the arrow keys, then Enter.
    5. Fine tune. Select a color to see its HEX, RGB, HSL and CMYK codes, check text contrast, see matching colors, and lock, move or remove it. New variation keeps your locked colors and picks the rest again.
    6. Save it. Copy the HEX codes, CSS variables or JSON, copy a share link, or download a PNG or SVG swatch card, an Adobe .ase file or a Procreate .swatches file.

    Your image never leaves your device. The page remembers your settings and your palette's HEX codes (in the address and in this browser), so a reload or a shared link shows the same palette, but never the picture.

    How the colors are chosen

    A photo has thousands of slightly different colors, so a palette is a summary. Here is what the tool does, in plain terms:

    1. It makes a small copy of your image, at most 256 pixels on the long side. That is plenty to judge which colors cover what share of the image, and it keeps large photos from freezing the page.
    2. It groups similar pixels into small boxes of nearly the same color, and leaves out fully transparent pixels (and near white and near black, if you ask it to).
    3. It finds the main groups with a method called k-means clustering, in a color space called OKLab. OKLab is built so that equal distances look like equal differences to the eye, which RGB is not: in RGB, two dark blues can be far apart in numbers yet look the same, while two yellows close in numbers look clearly different. Working in OKLab gives colors that look distinct, not just numbers that are.
    4. It starts from the biggest color and then adds the color that is most different from those already chosen, weighted by how much of the image it covers. There is no randomness in the first palette, so the same image always gives the same palette. Each New variation uses a different but repeatable starting point.
    5. Each color is the center of its group, taken from the strongest part of the group, so you get a color that is really in the image rather than a muddy average of a color and its blurred edges.
    6. Near copies are merged. Two colors closer than a just noticeable difference become one.
    7. Shares are counted: every pixel is given to the palette color it is closest to.

    True to the image weighs every pixel the same, so big areas win: a beach photo gives sand, sea and sky. Favor vivid colors gives saturated pixels much more weight, so a small red umbrella can make it into the palette. Use the first to describe a photo honestly and the second to find accent colors.

    Using a palette for your shop and products

    I find a fixed palette is one of the easiest ways to make a shop look planned. Some ways I use one:

    • A product line or bundle. Pull a palette from one finished design, lock the colors you like, and use only those across the other pages of the set. A planner where every page type shares the same five colors reads as one product.
    • A planner or template set. Use one light neutral for backgrounds, one dark color for text, one or two main colors for headers and tabs, and one accent for small highlights such as checkboxes or the current date. The Text on this color check tells you if text on a header color is readable.
    • Shop branding. Pull colors from your logo or from a photo that sets the mood you want, then use the same codes for your banner, shop icon and listing photo backgrounds. My Etsy banner size guide suggests a banner in your brand colors when you have no photo that fits.
    • Matching a mood board. Make a quick collage of photos you like, take a screenshot, paste it here, and turn on Favor vivid colors to see which accents run through it.
    • Listing photos. Pick colors from a product photo for the text and shapes on your other listing images, so the photos look like a set in search results.
    • Templates you sell. If buyers edit your designs in Canva, include the HEX codes in your instructions so they can keep the look. My guide on how to sell Canva templates on Etsy covers what to include with a template.

    Some product types are color-led by nature: palettes and brush sets for drawing apps are among the digital products I see selling on Etsy. If you sell palettes, the .swatches and .ase downloads give you the files buyers expect.

    HEX, RGB, HSL and CMYK: which one you need

    Code Looks like Where you use it
    HEX #E4572E Canva, Procreate, most design and website tools, sharing a color in a message. The one I copy most.
    RGB rgb(228, 87, 46) Apps that ask for red, green and blue values (0 to 255), Photoshop's color picker, code. Same color as the HEX, written in plain numbers.
    HSL hsl(14, 77%, 54%) Making lighter or darker versions by hand: keep the hue, change the lightness. Handy in CSS and some web tools.
    CMYK cmyk(0%, 62%, 80%, 11%) Print work. Print shops and InDesign or Illustrator print files use cyan, magenta, yellow and black.

    Everything you sell as a digital download, and everything a buyer prints at home, starts in RGB: home printers take RGB files and convert them themselves. You only need CMYK when a print shop asks for it, or when you set up a professional print file. The CMYK codes here use the plain formula with no color profile, so they are an approximation: the real printed result depends on the printer, ink and paper. Bright RGB colors such as a vivid blue or neon green can look duller on paper because ink cannot reach them. If color matters, print a test page on the printer you or your buyers will use; my guide to the best printer for an Etsy business covers what I look for in a printer.

    A worked example

    You can follow this one yourself: press Try a sample above. The sample is a simple landscape: a peach sky, a yellow sun, two green hills and a small cream house with a coral roof and a navy door.

    • With the default settings (6 colors, True to the image, most used first) I get #F6CFBA (28%), #F3BFAA (26%), #52796F (24%), #84A59D (17%), #F6BD61 (5%) and #E07A5F (1%). The two peaches are the top and bottom of the sky; the house wall and the door are too small to make the cut.
    • Asking for 8 colors adds the cream wall, #F4F1DE, and the navy door, #3D405B, at about 1% each.
    • For a planner set I would not keep two peaches, so I select #F3BFAA, remove it, and lock the dark green, the sun yellow and the coral.
    • Text on this color for #52796F shows white text at 4.85:1, which passes AA for body text, so the dark green works for headers with white titles. Coral #E07A5F with white text is only 2.95:1: fine for a decoration, not for small text on it.
    • In Contrast between two palette colors, navy #3D405B on cream #F4F1DE is 8.87:1 (passes AAA), so those two make a good text and background pair for the pages.
    • I download the PNG swatch card to keep with my planner files and copy the HEX codes into my design app.

    The same steps work for a shop refresh: pull from your logo, lock the logo colors, and let the tool fill in a light and a dark neutral to go with them.

    Export formats

    • HEX codes: one per line, ready to paste.
    • CSS variables: a :root block with --palette-1 and so on, for a website or a Shopify or Payhip theme.
    • JSON: each color with HEX, RGB, HSL, CMYK and share, for scripts and other tools.
    • Swatch card (PNG and SVG): the colors with their HEX and RGB codes, to keep with your project files or share. The SVG stays sharp at any size.
    • Adobe swatches (.ase): the Adobe Swatch Exchange format, which Illustrator, Photoshop and InDesign load as a color group.
    • Procreate palette (.swatches): opens on an iPad and adds the colors as a Procreate palette.
    • Share link: an address that holds only the HEX codes, so someone else opens the same palette. It never contains your image.

    All files are made in your browser. For the files that go to buyers, my guide to the best file type for Etsy digital downloads explains which formats to use.

    Frequently asked questions

    How do I get a color palette from an image?

    Drop the image into the tool above, or click the box to choose it, or paste it with Ctrl V (Cmd V on a Mac). The main colors appear straight under the picture, with the share of the image each one covers. Change the number of colors, choose Favor vivid colors if you want the bright accents rather than the big areas, and copy the codes or download the palette.

    How do I find the HEX code of a color in a picture?

    Load the picture, then click or tap the exact spot you want. A magnifier shows the pixels under your pointer, and the color you click is added to your palette with its HEX, RGB, HSL and CMYK codes. With a keyboard, focus the picture, move the crosshair with the arrow keys and press Enter.

    How many colors should a palette have?

    For a shop or a product line I work with 5 or 6: one or two main colors, a light and a dark neutral for backgrounds and text, and one or two accents. Fewer than 4 can feel flat on a planner with many page types; more than 8 is hard to keep consistent. The tool starts at 6 and goes from 3 to 12.

    Is my image uploaded?

    No. The image is read and analyzed by your own browser, on your device. Nothing is sent to selfwage.com or anyone else, which also makes it safe for designs you have not released yet. The page remembers only your settings and the HEX codes of your palette, never the image.

    Why is the CMYK code different from what my printer gives?

    A browser has no idea which printer, ink and paper you use, so the CMYK here is the plain conversion from RGB with no color profile. Design software with your print profile, or a print shop, will give different numbers. Use it as a starting point and print a test page.

    What is the difference between HEX and RGB?

    None in the color itself: both give the amount of red, green and blue from 0 to 255. RGB writes them as three numbers, rgb(228, 87, 46), and HEX writes the same three numbers in base 16, #E4572E. Canva, Procreate and most web tools take HEX; some apps ask for the RGB numbers.

    Can I use these colors in Canva?

    Yes. Copy a HEX code and paste it into the HEX field of Canva's color picker. To keep a palette for a whole set of templates, add the codes to a Brand Kit if you have Canva Pro, or save them in a note you can paste from. More on selling templates in how to sell Canva templates on Etsy.

    How do I add the palette to Procreate?

    Download the Procreate palette (.swatches) file, open it from the Files app on your iPad, and Procreate adds it to your palettes. Procreate palettes hold up to 30 colors, so any palette from this tool fits.

    Why does the tool find fewer colors than I asked for?

    Because the image does not have that many clearly different colors. Colors closer than a just noticeable difference are merged, so a logo with three flat colors gives three colors rather than six near copies. You can still add colors by clicking the image or from the matching colors.

    Does it work with transparent PNGs?

    Yes. Fully transparent pixels are left out, so a logo or clipart on a transparent background gives the colors of the design itself. Partly transparent pixels count less, by how see-through they are.

    Can I use HEIC photos from my iPhone?

    Only in a browser that can open HEIC, which is Safari on a Mac, iPhone or iPad. In other browsers the tool tells you it cannot read the file: save the photo as a JPEG first, or open this page in Safari.

    Sources: Björn Ottosson: A perceptual color space for image processing (OKLab) ; W3C: Web Content Accessibility Guidelines (WCAG) 2.2, contrast ratio and relative luminance ; W3C: CSS Color Module Level 4 (sRGB, HSL and OKLab conversions) . Tool last updated .

    More free tools

    Small tools I built for my own shops, free for yours.

    All free tools