Work With Colors Using pastel
Convert between color formats, generate palettes and check contrast.
Run pastel color red to display the color's hex, RGB and HSL values.
01Command
Command
$ pastel color red02What it does
pastel parses colors in many notations and can convert, mix, sort, pick and check contrast for accessibility. Use pastel pick to grab a color from the screen, which is handy when building a theme.
03Risk
!Warning: Color perception and terminal rendering vary; always verify contrast ratios numerically rather than by eye.
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- Homebrew formula: pastelEvidence: Command-line tool to generate, analyze, convert and manipulate colors. Packages pastel, a command-line tool to work with color representations.
Last verified: 2026-09-22 · Category: Developer
06Related solutions
Change where screenshots are saved on Mac
Point macOS screen captures at any folder you choose instead of the desktop.
Download a file from a URL on Mac with curl
Grab any file from the web straight into the current folder — no browser needed.
Find files larger than 500 MB on Mac
List the biggest files in your home folder that are eating disk space.