Colorize hex color codes in your terminal.
Pipe text or pass files to see hex colors rendered with their actual background.
English · 简体中文
Colorize hex color codes in your terminal.
A small CLI that finds hex color codes (#RGB, #RGBA, #RRGGBB, #RRGGBBAA) in text and renders them with colored backgrounds. Useful for previewing colors in CSS, config files, or any text that contains hex values.
npm install -g awecolorOr run directly with npx:
npx awecolor styles.css# Pipe from any command
cat styles.css | awecolor
# Read a file directly
awecolor theme.json
# List all colors with locations
awecolor --extract styles.cssawecolor [OPTIONS] [FILE...]
awecolor styles.css # Colorize hex codes in a file
cat styles.css | awecolor # Colorize from stdin
awecolor --extract styles.css # List colors with location and context
awecolor --no-color styles.css # Plain text output (no ANSI)
awecolor --force-color styles.css # Force color even when pipednpm test