Колір Palette Extractor

Extract колір palettes з CSS, SCSS, та HTML код

Введення Код

Paste CSS, SCSS, or HTML code above to extract all color values into a visual palette.

Колір Palette Extractor

Extract колір palettes з CSS, SCSS, та HTML код

Можливості

  • Extracts hex (#fff, #ffffff), RGB, RGBA, HSL, HSLA, та 148 named CSS кольори
  • De-duplicates кольори та counts usage frequency across ваш код
  • Sort palette за frequency, hue, або lightness
  • Export as CSS variables, SCSS variables, або JSON
  • Copy individual кольори або the full palette з one натисніть
  • 100% client-side обробка - ні дані leaves ваш браузер

Як використовувати

  1. Вставте ваш CSS, SCSS, або HTML код в the текст area.
  2. Colors are extracted automatically - hex, rgb, hsl, and named colors are all detected.
  3. Sort ваш palette за frequency, hue, або lightness.
  4. Натисніть будь-який swatch до copy its hex значення.
  5. Choose an export format (CSS variables, SCSS, or JSON) and copy the full palette.

Поради та найкращі практики

  • Try the 'Sample CSS' button to see the tool in action with a realistic stylesheet.
  • Sort за hue до see ваш колір spectrum в a glance.
  • Sort за frequency до find який кольори dominate ваш codebase.
  • Використовувати the JSON export формат до integrate кольори в ваш build tooling.
  • Вставте an entire stylesheet до audit ваш project's колір consistency.

Запитання та відповіді

What color formats does it detect?

The tool detects hex colors (3-digit #fff, 6-digit #ffffff, and 8-digit with alpha), rgb(), rgba(), hsl(), hsla() functions, and all 148 standard CSS named colors like 'red', 'dodgerblue', 'coral', etc.

How are duplicate colors handled?

Colors that resolve to the same hex value are merged into a single entry with a combined usage count. For example, 'red', '#ff0000', and 'rgb(255, 0, 0)' would all count as the same color.

Is my code private?

Yes, all processing happens entirely in your browser. No code or data is ever sent to any server.

Can I use this with SCSS or HTML?

Absolutely. The parser extracts color values from any text, so it works with CSS, SCSS, LESS, HTML inline styles, or even plain text containing color values.

What export formats are available?

You can export your palette as CSS custom properties (:root variables), SCSS variables ($variable syntax), or a structured JSON object with hex, RGB, HSL, and usage count for each color.