Export a list of colours as CSS custom properties, SCSS variables or a JSON array.
Color Token JSON Generator
Export a colour as a JSON token with every common format.
- Free
- No sign-up
- Runs in your browser
Input
A hex colour like #FF0000 or #F00.
Fill in Hex colour to continue.
Enter your input to see the result
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Enter a hex colour.
- 2
The result is a JSON object with the hex, RGB, HSL, HSV and CMYK values.
Questions about Color Token JSON Generator
What are design tokens for?
They store design decisions (like colours) as data that tools and code can share. This emits one token’s colour in every format so you can paste it into a token file.
Is anything sent anywhere?
No. The conversion runs entirely in your browser; the colours never leave the page.
Does the Color Token JSON Generator work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Color Token JSON Generator keeps working with the network switched off and nothing is ever sent to a server.
Is anything I enter into the Color Token JSON Generator uploaded or stored?
No. The Color Token JSON Generator runs in your browser, so whatever you type or paste never leaves your device — there is no server round-trip, nothing is logged, and there is nothing to delete afterwards.
Can I use the Color Token JSON Generator on a phone or tablet?
Yes. The page is responsive, so the Color Token JSON Generator works the same in a mobile browser as on a desktop, and there is no app to install.
Related tools
Other tools you might reach for next.
Convert a hex colour to RGB, with the colour in all common formats.
Convert an RGB colour to a hex code.
Convert a hex colour to HSL (hue, saturation, lightness).
Convert an HSL colour to a hex code.
Convert an RGB colour to HSL.
Convert an HSL colour to RGB.
Convert an RGB colour to CMYK (for print).