Color is tremendously powerful in creating data visualizations.

Tableau allows you to create custom color palettes. And usually people do this by:

  1. Find an image with the colors you want to use
  2. Use an eyedropper color picker tool; select each color in the image.
  3. Get the color code.
  4. Open your preferences.tps file and write a line of XML by hand that includes the color code.
  5. Repeat for each color.

But that’s old-school. One of my colleagues created a web app that automatically creates custom Tableau color palettes from any image.

  1. Find the URL of an image with the colors you want to use
  2. Paste it into

Tabpal identifies the dominant colors and spits out custom palette information ready to add to your Tableau prefs. Done!

For example, say I wanted to make a viz about the history of Apple, using the color scheme of Apple’s old rainbow apple logo.

Apple’s original rainbow logo, from

I fed it to TabPal. Here’s what I get:

tabpal output

TabPal grabs the top five colors in the image, identifies them, and creates the color-palette XML I need.

But, we’re not quite done yet. The Apple rainbow has six colors, so I used a web color picker (I like Colorzilla) to identify the blue color’s hex code — it’s #118ECE — and added it to the list TabPal generated, then added it to my Tableau preferences file.

color palette prefs

Now I can make my Apple viz in six colors. Moof!

apple color palette

Interested in learning more? Check out this webinar on Best Practices for Using Color in Data Visualization by Tableau Research Scientist Maureen Stone. She’s wicked smart!