Colour palette from a photo
Choose a photo and get its main colours as a palette, with HEX and RGB codes to copy, plus light, dark and muted background colours for a matching collage.
Choose a photo to see its colours.
Get a palette from a photo in three steps.
- Choose a photo
Pick a photo from your device or drop it on the tool. It is read in your browser and never uploaded.
- Pick how many colours
Choose 5, 6 or 8 colours. Tap any swatch to copy its HEX code.
- Use or save the palette
Take a suggested background for your collage, or download the photo with its palette as one image.
How the main colours are found.
A photo holds millions of slightly different colours, so the tool first makes a small copy of it. A 4032 × 3024 px phone photo becomes 150 × 113 px, about 17,000 pixels, which is plenty to see its colours and quick to work through.
It then sorts those pixels into groups of similar colours. The group with the widest spread of colours is split in two again and again until there are as many groups as you asked for. Each group is then tidied up a few times so every pixel sits with the colour it is closest to.
The average of each group becomes one swatch, and the swatches are ordered from the largest area of the photo to the smallest. A sunny beach photo, for example, might start with a soft sand colour and a sea blue, followed by smaller touches such as a towel or a sunhat.
The collage backgrounds are made from the palette itself: a pale tint of its lightest colour, a deep shade of its darkest colour, and a softened version of its main colour. They sit calmly behind photos without fighting with them.
Make the whole collage in SnapLayout.
SnapLayout is a collage and carousel app for iPhone. Pick a layout, add your photos and export at the exact size for Instagram, TikTok or Facebook.
Download on the App Store