Paste your colors
One per line, plain or as "name: color".
Paste your colors, one per line, name them if you like, and get them as CSS custom properties, SCSS variables, a Tailwind color config, a JavaScript object or JSON, ready to paste into your project.
100% private — the calculation is done in your browser and nothing is sent to any server.
One per line, plain or as "name: color".
CSS, SCSS, Tailwind, JavaScript or JSON.
Paste it directly into your project.
A palette that lives only as swatches in a design file has to be retyped into code sooner or later, and that is where typos creep in: a missing character in a hex code is invisible until something renders the wrong shade. This tool turns a plain list of colors into the exact syntax your project uses, so the values only have to be right once.
Write just a color on a line, such as #0f9e8e, and it gets an automatic name based on the closest standard color, like
teal-1. Write name: color, such as primary: #0f9e8e, and your own name is used and cleaned up into a safe
identifier. Mixing both in the same list is fine.
:root block with custom properties, usable everywhere in modern CSS.Enter hex, rgb(), hsl() or a CSS color name; each is normalized to a hex code, including an alpha channel if the color has transparency. Lines that are not a valid color are simply skipped, so a stray header or comment in your list will not break the result.
This only formats colors; it does not generate a full design system with spacing, typography or shades of each color. For a scale of tints and shades from one color, see the color shades generator. Everything is processed in your browser.
More utilities that also run without leaving your browser.