Image Colour Picker · Tutorial

How to get the HEX colour code from an image

3 min readbeginnerUpdated

You want to reuse a colour from a picture in your design. This tutorial picks the exact colour, copies its HEX code and builds a palette from the image.

What you need

Steps

  1. Add the image

    Drop the image on the page. The sample is a still life with coloured fruit.

  2. Average a few pixels

    Set Sample size to 3 × 3 for a steadier colour from a photo.

  3. Pick the colour

    Move over the red fruit and click. The HEX, RGB and HSL values appear on the left.

  4. Copy the code

    Click the HEX value to copy it, then paste it into your design tool or CSS.

  5. Build a palette

    Check Main colours for a ready-made palette of the image, with each colour's share.

Try it yourself

Opens the Image Colour Picker with this tutorial's sample loaded.

Try it now

Common mistakes

Picking from a highlight or shadow
Shading changes the colour. Pick from an evenly lit area.
Using a compressed screenshot
JPG screenshots can shift colours slightly. Use the original image if you can.

Next steps

Go back to the Image Colour Picker, or keep going with one of these: