Gratis å bruke, uten konto

Fargepalett fra bilde

Gratis verktøy i nettleseren. Oppgi verdiene dine og få et resultat på denne enheten.

Fargene er omtrentlige skjermprøver; bildet lastes ikke opp.

Resultat

Hvordan fungerer dette verktøyet?

Velg et bilde. Et lite, nedskalert utvalg analyseres i denne nettleseren.

Veiledning

Slik bruker du Fargepalett fra bilde

Color Palette from Image reads a picture you choose and lists its most common colours as swatches with hex codes. The picture is shrunk in your browser and a sample of its pixels is counted, so nothing is uploaded. You get up to six colours, each as a button showing its hex code and a count. Click a swatch to copy its code. The colours are approximate screen samples.

Slik gjør du

  1. Press Choose image and pick a picture file that your browser can show, such as a JPEG, PNG or WebP.
  2. Press Calculate / create. The tool shrinks the image, counts its colours and shows up to six swatches.
  3. Click a swatch to copy its hex code to the clipboard. Each swatch shows the code and a count.
  4. Press Reset to clear the result and try another picture.

Eksempler

A picture of mostly red with some blue

Du skriver inn
Bilde
3 reddish pixels (200, 30, 40) and 2 bluish pixels (20, 40, 200)
Du får
Fargeprøver
#C02020 (3); #2020C0 (2)

Each colour channel is rounded to the nearest multiple of 32, so (200, 30, 40) becomes (192, 32, 32), which is #C02020. The palette is not the exact pixel colour. Worked out by running the palette function on a made-up pixel list, not by loading a file in the page.

Ikke kjørt med verktøyet. Se på dette som en illustrasjon.

Transparent parts are ignored

Du skriver inn
Bilde
a PNG where most pixels are more than half see-through
Du får
Fargeprøver
only the visible colours are counted

Pixels with an alpha value below 128 out of 255 are skipped. A logo on a clear background gives the logo colours, not a block of black.

Ikke kjørt med verktøyet. Se på dette som en illustrasjon.

No file chosen

Du skriver inn
Bilde
none
Du får
Melding
Choose an image first.

Pressing Calculate without a file shows this message. A file the browser cannot read shows a different message.

Ikke kjørt med verktøyet. Se på dette som en illustrasjon.

Når det er nyttig

  • Pick brand or theme colours from a photo, a logo or a screenshot.
  • Make a quick colour scheme for a slide, poster or craft project from a picture you like.
  • Copy a hex code into a design tool without opening an image editor.
  • Compare the main colours of two pictures by running each in turn.

Begrensninger

  • The picture is shrunk to at most 512 pixels on its longest side and about 4,096 pixels are sampled, so tiny details can be missed.
  • Colours are grouped into steps of 32 per channel. Two similar shades can fall into different groups, and one smooth gradient can fill several swatches.
  • The palette size is fixed at six, there is no setting to change it, and fewer swatches appear if the picture has fewer groups.
  • Colours depend on your screen and the browser's image handling, so they are approximate.

Tips

  • Crop the picture to the part you care about first, since every area is counted by size.
  • Use the swatch as a starting colour, then fine-tune it in your design tool.
  • If you only get dull results, try a version of the picture with higher contrast.

Vanlige spørsmål

Is my image uploaded?

No. The page says processing runs in your browser and the input is not uploaded or saved. The picture is drawn onto a small canvas in the page and read there, so the file stays on your device.

How many colours do I get?

Up to six. The number is set in the tool and there is no control to change it. You may get fewer if the picture has fewer distinct colour groups after the tool rounds each colour channel.

Why is the hex code not the exact colour I see?

The tool rounds each of red, green and blue to the nearest multiple of 32 to group similar colours. So the result is a nearby colour, not an exact pixel value. Use a colour picker on the original for an exact code.

What does the number on each swatch mean?

It is how many of the sampled pixels fell into that colour group. The sample is at most about 4,096 pixels, so the count is a relative size, not the pixel count of the whole picture.

Does it work with transparent PNG files?

Yes, in the sense that pixels more than half see-through are skipped. Only the visible parts count. This was not tested with real files, so check the result against your picture.

Is there a file size limit?

The palette code sets none, since it only samples a shrunk copy. The browser must still be able to load and decode the picture, so a very large file may be slow or fail on a weak device.

Does it find the colour names or the brand colours?

No. It gives hex codes only. For names you would use a separate colour name tool. It also does not know which colours are meant as brand colours, only which are common.

Hvordan fungerer dette verktøyet?

Velg et bilde. Et lite, nedskalert utvalg analyseres i denne nettleseren.

Lastes inndataene mine opp?

Nei. Behandlingen skjer i denne nettleseren. Verktøyet laster ikke opp eller lagrer inndataene dine.

Er fargepalett fra bilde gratis å bruke?

Ja. Den er gratis i nettleseren og krever ingen konto. Enhetens minne og nettleserstøtte gjelder fortsatt.

Hvor nøyaktig er resultatet?

Fargene er omtrentlige skjermprøver; bildet lastes ikke opp.