Sifency Tools

Design tokens (JSON) from an image

Design tokens work best as plain data. Drop an image and export the colours as JSON that scripts, build tools and handoff documents can read without any extra work. Nothing is uploaded: your image stays in your browser.

Drop an image here

Or paste one with Ctrl+V. PNG, JPG, WebP, GIF, AVIF or BMP, up to 25 MB.

More palette ideas

How it works

  1. Add an image

    Drop a picture on the page, paste it with Ctrl+V, or browse for a file. A logo, a photo, a screenshot or a product shot all work.

  2. Choose how many colours

    Pick 4, 6, 8 or 10. The most common colours come first, with the share of the image each one covers, so you can see which colour leads.

  3. Pick, scale and copy

    Click the image to pick any exact pixel with a magnifier, open an eleven-step tonal scale for any colour, and show the colours as HEX, RGB, HSL or OKLCH.

  4. Export it

    Copy the palette as CSS variables, a Tailwind theme, SCSS, JSON or plain text, download it as a file, or save a PNG strip of the colours.

Questions about a design tokens in JSON

How do I get a design tokens in JSON from an image?

Add your image, and 8 colours are chosen for you. You can change that to 4, 6, 8 or 10. Then open Export, choose JSON with tonal scales and copy the code. Keep the JSON in version control. When the picture changes, export again and the diff shows exactly which colours moved.

What does the DEFAULT key mean in the JSON?

It holds your exact colour, while the numbered keys hold the lighter and darker steps. Tailwind-style configs read it as the colour used when no step is named.

How many colours should a design tokens in JSON have?

Eight colours suit a token file: the first few become your core set and the others stay as candidates you can delete.

Is the image I use for my design tokens in JSON uploaded?

No. The picture is read by your own browser in a background worker, so your design tokens in JSON stays private and the page keeps working offline once it has loaded.

Next step

Check that these colours are readable

A palette looks fine until text sits on it. Test any pair from your palette against WCAG AA and AAA, and get the closest passing colour when one fails.

Open the Contrast Checker
View all tools

About these tools

Small tools, made by Sifency

Sifency is a small studio that builds themes, plugins and web apps. These tools began as the things we kept needing ourselves, so we tidied them up and left them open for everyone. There is nothing to sign up for.