UsTube

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.

Drop an image here, or tap to choose JPG, PNG, WebP, GIF and more. Nothing is uploaded.

Runs in your browser. Nothing you type or open here is uploaded.

How it works

How to get a colour palette from a picture

  1. 1

    Open a picture

    Drop an image on the box or tap it to choose a file. It opens on your device only.

  2. 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. 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.

UsTube Studio

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.

Try UsTube Studio free Free to start · no card needed

Questions people ask

How do I get the HEX code of a colour in a picture?
Open the picture and click the spot you want. The HEX, RGB and HSL codes appear under the picture. Click a code to copy it.
How are the dominant colours found?
The page groups similar pixels using median cut and shows the average of each group. It is an estimate of the main colours in the picture.
Can I get more than 10 colours?
The slider offers 6 to 10, which suits most palettes. For one more exact colour, click the picture to pick a pixel.
What are the CSS variables for?
They are lines such as --color-1: #1a73e8; that you paste into a style sheet and then use with var(--color-1).
Does it work with PNG logos with a transparent background?
Yes. Fully transparent pixels are ignored, so the empty background does not become a colour.
Is my picture uploaded?
No. The colours are found in your browser, and the picture never leaves your device.
Free tools

More tools like this

See all 54 free tools