designwithfocus

Palette to JSON Exporter

Export a palette as JSON design tokens.

Free No sign-up Runs in your browser
{
  "palette": [
    {
      "name": "color-1",
      "hex": "#1B7F80"
    },
    {
      "name": "color-2",
      "hex": "#0F4C4D"
    },
    {
      "name": "color-3",
      "hex": "#FFC93C"
    },
    {
      "name": "color-4",
      "hex": "#E0573A"
    },
    {
      "name": "color-5",
      "hex": "#2FA67A"
    }
  ]
}

How to use Palette to JSON Exporter

  1. Open the tool and enter your starting colour or upload your file.
  2. Adjust the options until the result looks right.
  3. Copy the values or download the result.

How the palette to json exporter works

Export a palette as JSON design tokens.

Everything runs in your browser, so your colours and files are never uploaded.

InputOutput
A colour or an imageHEX, RGB, HSL, CMYK and OKLCH values
Two coloursContrast ratio and WCAG rating

Good practice

Check contrast before using a colour for text. A ratio of 4.5 to 1 passes WCAG AA for normal text.

Save the colours you reuse as CSS variables so they stay consistent.

FAQ

Is this tool free?

Yes. It is free, with no sign-up and no watermark.

Does it upload my files?

No. Files are processed in your browser and never leave your device.

Can I use the colours in my project?

Yes. Copy the HEX, RGB or CSS values into your stylesheet or design tool.

What if my browser does not support a feature?

The tool falls back to a manual input where a browser feature is missing, and says so on the page.

Report a problem with this tool