COLOR PALETTE EXPORT GUIDE
Color Palette Exporter – Export Color Palettes to CSS, Tailwind, JSON, Adobe ASE, Android, SwiftUI and Flutter Online Free
Got a color palette and need it in the right format for your project? Our free color palette exporter turns any list of colors into ready-to-use code and design files: CSS variables, SCSS variables, Less variables, a Tailwind CSS config, JSON, design tokens, Android colors.xml, SwiftUI colors, Flutter colors, a GIMP palette (.gpl), CSV, and a plain HEX list. You can also download Adobe ASE swatches for Photoshop, Illustrator and InDesign, a PNG image of your palette, and an SVG with labelled swatches. Add colors with the picker, or simply paste a list of HEX, RGB, HSL or named colors, give each one a name, and export in one click. It works as a color palette to CSS converter, a palette to Tailwind generator and a swatch file maker in a single page, with no signup, no software and no watermark. Everything runs inside your browser, so your palette stays private.
{ }
Palette to CSS, SCSS and Tailwind
Export your colors as CSS custom properties, SCSS and Less variables, or a Tailwind CSS color configuration, including the newer Tailwind v4 theme syntax. Names are cleaned up automatically, so the code is ready to paste into your stylesheet or config file.
ASE
Adobe ASE, GIMP, PNG and SVG
Need swatches for your design software? Download an Adobe Swatch Exchange (.ase) file, a GIMP palette (.gpl), a PNG image of the palette, or an SVG with labelled color swatches that you can share with clients or drop into a presentation.
App
Android, SwiftUI and Flutter Colors
Mobile developers can export the same palette as an Android colors.xml resource, a SwiftUI Color extension or a Flutter class of Color constants, with names converted to the right naming style for each platform.
What Is a Color Palette Exporter?
A color palette exporter converts a set of colors into the formats that designers and developers actually use. A palette often starts life as a handful of HEX codes from a brand guide, a color picker, an image or a palette generator. Turning those codes into CSS variables, Tailwind theme colors, mobile app resources and design swatches by hand is slow and easy to get wrong. A palette exporter does that translation for you, with consistent names and correct syntax for every target.
The same palette can be exported many times in different formats, which keeps your website, your app and your design files in sync. Change one color, export again, and every platform gets the update.
How to Use the Color Palette Exporter (Step by Step)
Exporting a palette takes less than a minute. Follow these steps to turn your colors into code or design files.
-
Add your colors: Use the Add color button and the color picker, load a sample palette, or paste a list of colors such as HEX codes, rgb() or hsl() values and named colors, separated by commas, spaces or new lines.
-
Name your colors: Type a name for each color, for example primary or background. Colors without a name get an automatic name from the prefix you choose, such as color-1, color-2 and so on.
-
Arrange the palette: Move colors up and down, sort them by hue or lightness, or reverse the order.
-
Choose an export format: Open the CSS, SCSS, Less, Tailwind, JSON, Tokens, Android, SwiftUI, Flutter, GIMP GPL, CSV or HEX list tab. On CSS, SCSS and Less, pick HEX, RGB or HSL for the color notation.
-
Copy or download: Copy the code with one click, download it as a file, or save the palette as an Adobe ASE file, a PNG image or an SVG.
Supported Export Formats: What Each One Is For
The table below shows every format the color palette exporter supports, the file you get and where it is typically used.
Color palette export formats
| Format |
What you get |
Works with |
Best for |
| CSS variables |
Custom properties inside :root |
Any website or web app |
Themes and consistent brand colors |
| SCSS and Less |
Preprocessor variables, plus an SCSS map |
Sass and Less projects |
Design systems and large stylesheets |
| Tailwind CSS |
v3 config colors and v4 @theme variables |
Tailwind projects |
Utility classes such as bg-primary and text-accent |
| JSON and design tokens |
Simple JSON list or token format with $value and $type |
Scripts, APIs, token tools |
Sharing a palette between tools and teams |
| Android colors.xml |
Resource file with color entries |
Android apps |
Material themes and app styling |
| SwiftUI |
Color extension with static constants |
iOS, iPadOS and macOS apps |
Consistent colors in SwiftUI views |
| Flutter |
Dart class with Color constants |
Flutter apps |
Cross-platform app themes |
| Adobe ASE |
Adobe Swatch Exchange file |
Adobe apps such as Photoshop, Illustrator and InDesign |
Loading a brand palette as swatches |
| GIMP GPL |
Plain-text palette file |
GIMP and other apps that read .gpl palettes |
Open-source painting and image editing |
| PNG and SVG |
Image and vector swatch sheet |
Docs, slides, chat and design files |
Sharing and presenting the palette |
| CSV and HEX list |
Spreadsheet-friendly table or one color per line |
Excel, Google Sheets, scripts |
Documentation and quick handoff |
How Color Names Become Code: Naming Conventions by Platform
Every language has its own rules for variable names. The exporter cleans up the names you type, turning spaces and symbols into a safe form, and then applies the right style for each target. For example, a color named Brand Primary becomes the following.
Color name conversion per export format
| Platform |
Naming style |
Example output |
| CSS | kebab-case custom property | --brand-primary |
| SCSS | kebab-case with $ | $brand-primary |
| Less | kebab-case with @ | @brand-primary |
| Tailwind | kebab-case key | 'brand-primary' |
| Android | snake_case resource name | brand_primary |
| SwiftUI | camelCase constant | brandPrimary |
| Flutter | camelCase constant | brandPrimary |
If two colors end up with the same name, the exporter adds a number so the code stays valid. Names that would start with a digit are adjusted too, because most languages do not allow that.
Export a Color Palette to CSS Variables
CSS custom properties are the most flexible way to use a palette on the web. The exporter writes them inside a :root block, so every element can use them with the var() function, and a single change updates the whole site. You can switch the color notation between HEX, RGB and HSL before you copy, which is handy if your project already follows one style. If you build themes, such as light and dark modes, you can export the same names twice with different colors and scope them to different selectors.
Use this when you want a palette to power backgrounds, text, borders, buttons and shadows from one source of truth, without a build step or a framework.
Export a Color Palette to Tailwind CSS
The Tailwind tab gives you two blocks. The first is a color object for the extend section of tailwind.config.js, which works with Tailwind v3 and earlier. The second is an @theme block with --color-* variables, which is how Tailwind v4 defines theme colors in your CSS. Once the colors are in your config, you can use them in utility classes, for example bg-brand-primary, text-brand-accent or border-brand-muted. Choose short, meaningful names and the generated classes stay easy to read.
Export a Palette as Adobe ASE, GIMP GPL, PNG or SVG
Design tools prefer swatch files over code. The Adobe ASE export creates an Adobe Swatch Exchange file with every color and its name, which Adobe apps such as Photoshop, Illustrator and InDesign can load as swatches. The GIMP GPL export is a simple text palette that GIMP and several other open-source tools can read. If you just need something to show a client or a teammate, download a PNG image or an SVG sheet with each color, its name and its HEX code printed on the swatch.
ASE and the image formats store plain RGB colors, so transparency is not included. If you paste a color with an alpha value, the exporter keeps the solid color and tells you the transparency was ignored.
Export Colors for Android, SwiftUI and Flutter
App developers often receive a palette as a list of HEX codes and then have to rewrite it for each platform. The exporter does it in seconds. On Android you get a resources file you can place in your values folder, on iOS a SwiftUI Color extension with named constants, and in Flutter a class of Color constants using the 0xAARRGGBB format. Because all three come from the same palette, your web, iOS and Android apps stay visually consistent.
- Android: Color entries named in snake_case, ready for XML layouts and Material themes.
- SwiftUI: Static Color constants with red, green and blue values from 0 to 1.
- Flutter: A private-constructor class with static const Color values you can reference anywhere in your app.
HEX, RGB and HSL: Which Color Notation Should You Export?
The same color can be written in several ways. The best choice depends on how you work with it.
Color notations in exported code
| Notation |
Example |
Strengths |
| HEX |
#2A9D8F |
Short, universal, the default in design tools and brand guides |
| RGB |
rgb(42, 157, 143) |
Easy to read channel values, useful in scripts and canvas code |
| HSL |
hsl(173, 58%, 39%) |
Easiest to adjust by hand, great for tints, shades and themes |
How Many Colors Should a Palette Have?
There is no single right number, but these ranges work well as a starting point and fit the amount of space the exporter gives you.
Typical palette sizes
| Use |
Typical size |
Notes |
| Core brand palette |
3 to 5 colors |
One main color, one or two supporting colors, and a neutral |
| Website or app UI |
6 to 10 colors |
Brand colors plus background, text, border and status colors |
| Charts and dashboards |
5 to 8 colors |
Distinct hues that stay readable side by side |
| Design system scale |
10 or more colors |
Shades from light to dark for each key color |
The exporter handles up to 24 colors, which covers most brand palettes and UI color sets.
Who Uses a Color Palette Exporter?
- Web developers: Turn a palette from a brand guide into CSS variables or a Tailwind config.
- UI and UX designers: Hand developers a clean set of named colors and give stakeholders a PNG or SVG preview.
- Mobile developers: Keep Android, iOS and Flutter colors identical with one source palette.
- Brand and graphic designers: Load a palette into Adobe apps as an ASE swatch file.
- Digital artists and illustrators: Import a GPL palette into GIMP and other painting tools.
- Teachers and students: Share class palettes and explain color systems with downloadable swatch sheets.
- Marketers and content creators: Keep slides, social posts and documents on-brand with one reference sheet.
Tips for Exporting Clean, Useful Palettes
- Name colors by role: Names like primary, surface and danger survive a rebrand, while names like blue-1 may not.
- Keep neutrals in the palette: Include background, text and border colors, not only accent colors.
- Check contrast: Make sure text colors have enough contrast against the backgrounds you pair them with.
- Test for color blindness: Do not rely on color alone to carry meaning, and preview the palette in a color blindness simulator.
- Use one prefix per project: A prefix such as brand keeps exported names tidy and avoids clashes with other variables.
- Re-export after changes: When a color changes, export every format again so web, mobile and design files stay in sync.
Free Color Palette Exporter for Any Device, With Full Privacy
This color palette exporter runs in your web browser on Windows, Mac, Linux, Android, iPhone and iPad, so there is nothing to install and no account to create. Parsing, naming and file generation happen locally with JavaScript, which means your palette is never uploaded, logged or stored. That keeps unreleased brand colors and client work private, and it makes the tool fast even on a slow connection.
Ready to try it? Scroll back up, build your palette and pick a format. If you also work with colors, explore the other free color tools on our site.