Raspberry Pi

Manipulate Colors on Raspberry Pi Using Pastel

Pastel is an open-source command-line utility designed especially for web designers to visualize, manipulate and convert color to another format on a Linux terminal. It supports several color formats such as RGB, CIELAB, HSL, and more. It has several commands that allow you to view and analyze different color patterns on the terminal, helping you add the colors to your web designing-related tasks.

In this guide, you will learn the simplest way through which you are able to install Pastel on your Raspberry Pi device. So, without any delay, let’s begin the installation process:

Manipulate Colors on Raspberry Pi Using Pastel

To install Pastel on Raspberry Pi, you should need to follow the below-mentioned steps:

Step 1: Download Pastel tar.gz file on Raspberry Pi

First, download the Pastel tar.gz file on your Raspberry Pi device through executing the below-given command:

$ wget https://github.com/sharkdp/pastel/releases/download/v0.9.0/pastel-v0.9.0-aarch64-unknown-linux-gnu.tar.gz

Step 2: Make a Temporary Directory for Pastel on Raspberry Pi

After downloading Pastel on Raspberry Pi, you should need to create a temporary directory for storing the Pastel files in it. You can do this operation by applying the following command:

$ mkdir pastel-temp

Step 3: Extracting Pastel tar.gz file

Once the directory is created, you can extract the content of Pastel into the directory using the following command:

$ tar xf pastel-v0.9.0-aarch64-unknown-linux-gnu.tar.gz --strip-components=1 -C pastel-temp

Step 4: Move Pastel Directory

Next, you will need to move the executable file of Pastel from its directory to the location “/usr/bin” so that you can compile the application successfully on your device and for this operation, you have to use the following command:

$ sudo mv pastel-temp/pastel /usr/bin

Step 5: Run Pastel on Raspberry Pi

After moving the executable file to the specified location, you can run the following command to get the help related to Pastel on Raspberry Pi device.

$ pastel

To get information about random colors, you can execute the following command:

$ pastel -f random

Through the above command, you can analyze different color patterns with their code that will help you in using these colors in your design.

You can also apply the below-mentioned command to pick a color of your choice.

$ pastel -f pick

Once you select the color, its information will be displayed on your Raspberry Pi terminal.

There are different subcommands to choose from once you run the “pastel” command and you can try each one to find out the information about different color patterns on your terminal.

Removing Pastel From Raspberry Pi

You can remove Pastel from your Raspberry Pi device by deleting its executable file from the location “/usr/bin” through the following command:

$ sudo rm -rf /usr/bin/pastel


Pastel is an efficient command-line application that allows designers to easily visualize the color patterns on their device terminal. You can install this application on your Raspberry Pi by downloading the Pastel tar.gz file and extracting its contents into the temporary directory using the above-mentioned steps. After the extraction, you need to move the executable Pastel file to the “usr/bin” location to complete the installation and then use several commands to see different color palettes on your terminal.

About the author

Awais Khan

I'm an Engineer and an academic researcher by profession. My interest for Raspberry Pi, embedded systems and blogging has brought me here to share my knowledge with others.