Export Colors to CSS, Flutter, Android, Swift and Tailwind

Enter up to 15 HEX colors, including transparent HEX8, or import palette JSON. Preview the colors and export CSS, Tailwind, SCSS, Design Tokens, Flutter/Dart, Android XML or SwiftUI. Copy or download ready-to-use files.

1. Enter your palette

Paste 1–15 #RGB, #RGBA, #RRGGBB or #RRGGBBAA colors (alpha last), separated by commas, spaces or line breaks, or import a Sac Ma JSON file. Brand Color System JSON preserves shade scales (50–950) and light/dark roles; Website Color Visualizer JSON preserves its six light/dark roles without inventing additional ones.

2. Choose an export format

Choose an output for web, Flutter, Android or SwiftUI. When exporting HEX8, Flutter/Android place the alpha byte first (AARRGGBB). Tailwind CSS v4 uses @theme inline; Tailwind v3 exports a JavaScript config. Light/dark variables use data-theme.

Generated code is updated only after you click Apply colors or import valid JSON. Editing HEX values or reading a file temporarily disables copying and downloading to prevent exporting stale colors.

3. Use the exported code

Your colors are processed locally in the browser and are not uploaded to a server. A plain HEX palette exports only the colors you provide. Import Brand Color System JSON for semantic roles and OKLCH shade scales, or Website Color Visualizer JSON for its six light/dark roles. Test the final code in your project before release.

Color terms (optional)
Tailwind
Utility-first CSS framework; v3 uses a JS config, v4 defines tokens with @theme.
SCSS
Sass syntax with variables and maps; requires a Sass compiler.

Choosing the right export format

CSS Variables work well for HTML, CSS and WordPress websites: for example, background: var(--sm-color-1). Tailwind CSS v4 uses @theme inline for variables that reference other custom properties, including light/dark roles. Tailwind CSS v3 uses theme.extend.colors in JavaScript. SCSS Maps require a Sass compiler. JSON Design Tokens are for design systems or tools that support the token structure. Flutter/Dart exports Color(0xAARRGGBB), Android exports res/values/colors.xml with #AARRGGBB, and SwiftUI exports sRGB components and opacity. Light/dark roles are named separately and do not switch automatically.

Design Tokens 2025.10: exported color tokens use $type: "color" and an sRGB object with components and a HEX fallback. Older string-based HEX tokens remain importable. sRGB alpha bytes are preserved; unresolved aliases and unsupported color spaces are not accepted.

Export a palette in three steps

  1. Add colors: paste #2A6DF480, #14B8A6, #F59E0B and select Apply colors.
  2. Choose output: use CSS variables for a website, Flutter/Android/Swift for an app, Tailwind v3/v4 for the respective framework, or SCSS/JSON for design tools. Import brand JSON to preserve semantic light/dark roles and 50–950 shades.
  3. Review and ship: copy or download the result, test it in your real website and check text/background contrast.

Alpha: input HEX8 uses RRGGBBAA, but Flutter/Android exports use AARRGGBB. If you import light/dark roles, select the correct group in your application; the generated code does not automatically follow device appearance.

Important: plain HEX values do not encode semantic text, background or button roles. Begin with Brand Color System if you need those roles. Exporting code does not automatically change a website or establish WCAG compliance.

Last updated: November 7, 2026 · Methods and data sources (Vietnamese)