pastel
Command-line tool to generate, analyze, convert and manipulate colors across multiple formats and color spaces
Pastel is a command-line color manipulation tool that supports generation, analysis, conversion, and manipulation of colors across multiple formats and color spaces. It handles RGB (sRGB), HSL, CIELAB, CIELCh color spaces as well as ANSI 8-bit and 24-bit representations. Colors can be specified in various formats including hex codes, CSS color names, RGB values, and HSL notation.
The tool provides composable commands that can be chained through pipes, enabling workflows like pastel random | pastel mix red | pastel lighten 0.2 | pastel format hex. Core functionality includes format conversion between color spaces, color analysis and display on the terminal, screen color picking with pastel pick, generation of visually distinct color sets, and lookup of X11/CSS color names. It also includes a paint command for colorizing terminal text output with foreground and background colors.
Pastel targets developers, designers, and system administrators who work with colors in terminal environments, shell scripts, or development workflows. The tool accepts colors as command-line arguments or from standard input, making it suitable for both interactive use and automation in scripts and pipelines.
Installation
# via Homebrew
brew install pastel
# via Cargo
cargo install pastel
# via APT
sudo apt install pastel

Alternatives & related tools
jscpd
Copy/paste detector for 224 source formats with a Rust engine. Also reports dead code, complexity, git-history duplication trends, and a health score.
tealdeer
Fast Rust implementation of tldr providing simplified, example-based manual pages for command-line tools
zizmor
Static analysis tool that finds and fixes security issues in CI/CD configurations, including GitHub Actions workflows, Dependabot, and pre-commit.
watchexec
File watcher that runs commands when files change, with .gitignore support and cross-platform filesystem monitoring
sd
Find and replace CLI tool with regex support, string-literal mode, and faster performance than sed
add a badge to your README
Maintain pastel? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/pastel?utm_source=badge)<a href="https://www.trmn.sh/tools/pastel?utm_source=badge"><img src="https://www.trmn.sh/badge/pastel.svg" alt="Featured on trmn" height="20"></a>