Color Palette from Image
Open a picture and see its main colours as swatches with HEX, RGB and HSL codes. Click a swatch to copy it, or click the picture to pick one exact pixel. Nothing is uploaded.
Click or tap the picture to pick the colour of one pixel.
Runs in your browser. Nothing you type or open here is uploaded.
How to get a colour palette from a picture
- 1
Open a picture
Drop an image on the box or tap it to choose a file. It opens on your device only.
- 2
Look at the swatches
The main colours appear with HEX, RGB and HSL codes. Use the slider to get 6 to 10 colours. Click the picture to pick one exact pixel.
- 3
Copy or download
Click any code to copy it. Use Copy all as CSS variables, or download the palette as a PNG strip.
What this tool finds
It looks at the pixels of your picture and groups similar colours together. Then it shows the main groups as swatches, the biggest first. Each swatch has the colour in three common forms: HEX, RGB and HSL. You can copy any of them with one click and paste it into a design tool, a style sheet or a document.
How the colours are chosen
The page makes a small copy of your picture, so large photos are quick. It then uses a method called median cut. It puts all the colours in one box, finds the colour channel with the widest spread, and splits the box in two at the middle. It repeats this until it has the number of boxes you asked for. The average colour of each box is a swatch. Fully transparent pixels are ignored. The result is an estimate of the main colours, not an exact count. A different method could give a slightly different list.
Pick one exact pixel
Sometimes you want one specific colour, such as the blue of a logo. Click or tap that spot on the picture. The colour appears under the picture with its codes. Small parts of a photo can be noisy, so for a flat colour, click the middle of a plain area.
Colour formats
- HEX, such as #1A73E8, is the form used in web design and most design apps.
- RGB, such as rgb(26, 115, 232), gives red, green and blue from 0 to 255.
- HSL, such as hsl(217, 83%, 51%), gives hue, saturation and lightness. It is easy to adjust by hand.
CSS variables and a PNG strip
Press Copy all as CSS variables to get a block like --color-1: #1a73e8; that you can paste
into the top of a style sheet. Press Download palette as PNG to save the swatches as one image strip, with
the HEX code on each, for a mood board or a brand note.
Good to know
Phone photos are shown the right way up. Very large pictures are scaled down for the analysis only. For video covers, you can crop the picture first with the image cropper, and change its format with the image converter. To grab a frame from a video, try the video thumbnail extractor.
Now make the video itself.
UsTube Studio turns one sentence into a finished video: script, scenes, voice-over, music and captions, ready for Shorts, Reels and TikTok.