pbPassingBI
/

How to add Custom Color to Tableau?

intermediate
Answer

Custom palettes are defined in Preferences.tps, a small XML file in My Tableau Repository.

Open it in a text editor and add a palette inside the `preferences` element, giving each colour as a hex code:

  • `type="regular"` for categorical palettes - `type="ordered-sequential"` for a single-hue ramp - `type="ordered-diverging"` for a two-ended ramp

Save the file, restart Tableau Desktop, then open the colour legend, click Edit Colors, and your palette appears in the dropdown.

For a one-off colour you do not need any of this — Edit Colors → Select Data Item → More Colors lets you enter a hex value directly. The .tps route is for palettes you want available in every workbook, which is how you keep brand colours consistent.

Related questions