On this page

Choose a categorical palette by starting with the categories readers need to distinguish, generating a few candidate color sets, and testing those colors in the finished chart. The best choice is a set whose colors remain recognizable at the size and against the background where they will actually appear.
Treat labels and other visual cues as part of the design from the beginning. A palette that looks distinct to one person may be difficult for another person to interpret, so check color combinations in context and be prepared to revise both the colors and the chart.
Define the categories and chart
Write down every category and ask which ones readers must distinguish at the same time. For example, a chart comparing types of transport might include walking, cycling, driving, and public transit. Those names identify different groups; they do not by themselves establish a high-to-low order.
A sequence of progressively lighter or darker shades can suggest numerical order where none exists. For unordered groups, begin with colors that readers can tell apart without interpreting a progression. If the data also contains a meaningful ranking, decide whether that ranking belongs in the same chart or needs a separate treatment.
Next, sketch how the colors will appear. A large bar, a thin line, and a small point give readers different amounts of color to work with. Note whether marks will touch or overlap, whether labels can sit beside them, and what background will surround the chart. Also consider where the chart will be viewed: a palette chosen for a large display should be checked at the smaller size at which it may be read.
Finally, decide whether every category needs its own color. If the goal is to draw attention to one group, you might distinguish that group and label the others directly. If readers need to compare every group, plan a distinct, consistent identification for each. This decision gives you a practical target before you start exploring colors.
Generate and select candidate colors
Start with one color that suits the chart and its intended setting, then use a palette generator to explore a set of alternatives. Before relying on a generator, check what it accepts and returns: can you provide a starting color, choose how many colors you need, or adjust individual results? The available controls determine how you can use it. If a particular option is absent, select or revise colors with the controls that are available.
If you have an existing color to match, a color picker may help you obtain its value for use as a starting point, provided the tools accept compatible inputs. Record the color values the generator supplies so you can recreate and compare candidate sets. Check that the output contains enough usable colors for the categories you actually need to show.
Compare the candidates as sets, not just as individual swatches. Look for colors that are easy to tell apart from the others, including those that may appear next to one another in the chart. Avoid choosing every color for maximum brightness or saturation; strong colors can be useful, but a whole set of them may compete for attention. A calmer candidate may make the chart easier to read if its categories remain distinct.
Keep two or three promising sets for the next step. A palette preview is useful for narrowing options, but the decision depends on how the colors work with the chart’s marks, labels, and background. There is no need to treat the first generated set as the finished answer.
Assign colors with meaning in mind
Once you have a candidate set, assign each color to a named category deliberately. Familiar associations can help readers make sense of a chart, but consider the entire set before committing. A color that feels appropriate for one group is less useful if it becomes difficult to distinguish from the color assigned to another.
For a transport example, you might consider a green for cycling if that association makes sense for your audience. Then compare it with every other category color in the chart. If another green makes the two groups hard to distinguish, change one of the assignments or choose another candidate. The association is a helpful cue only when readers can still identify the groups reliably.
Make a small assignment list with the category name and its color value. Use the same mapping in the chart, its legend, and any related charts where the same categories appear. Keep category names consistent as well, so a reader does not have to infer whether two different labels refer to the same group.
Think about whether an association could distract from the message. If a color seems to imply approval, danger, or priority that your data does not express, consider a different assignment. Ask someone unfamiliar with the chart what they think the colors mean, and use their response to identify assumptions you may have overlooked. The aim is a set that communicates clearly as a whole, rather than a collection of individually appealing choices.
Test colors in the actual chart
Apply the candidate palette to the chart before making the final choice. View it at its intended size and against its intended background. Compare the smallest points, thinnest lines, and any marks that touch or overlap. If readers must repeatedly consult a legend to separate two groups, inspect that pair closely and consider whether a label or a color change would help.
Test text and background contrast separately from the differences between category colors. A contrast checker can help you examine the actual text and background color values; contrast ratios use relative luminance. Check each relevant pairing, such as a label on the chart background and text placed inside a colored mark. If a tool accepts the values you are using, enter the specific colors rather than relying on how similar swatches look elsewhere.
Review the chart under different color-vision conditions if a suitable preview or review method is available. A palette that works for some viewers can contain colors that look too similar to a person with a particular color-vision deficiency. Also inspect a grayscale version: it can reveal where categories become difficult to separate without their original colors. Neither check should replace looking at the actual chart with its labels and marks.
Try a simple reading task with someone else: ask them to identify a category, follow it across the chart, or compare two groups. Note where they hesitate or select the wrong group. Their difficulty gives you a concrete place to revise, especially when the palette looked clear as a row of large swatches.
Revise when categories are hard to distinguish
Start with the specific pair that caused trouble. Change one color, apply the revised value to the chart, and repeat the relevant checks at the intended size. You can also try a different assignment from an existing candidate set. Record the new category-to-color mapping so the chart and legend stay in agreement.
If several groups remain difficult to distinguish, reconsider how much the chart asks readers to hold in view. Where it suits the question, show fewer categories at once, split the information into separate views, or group categories under a clearly explained label. Preserve the distinctions the reader needs for the task: combining groups merely to make the palette easier can hide a comparison that matters.
Add another way to identify each group. Direct labels can put names next to marks; patterns may help distinguish filled areas; and different shapes can help separate point series. Choose cues that fit the chart and remain legible at its intended size. A legend can explain the mapping, but labels placed close to the data may reduce the need to look back and forth.
Finish by reviewing the revised chart as a whole. Check that each category is identifiable, that text works against its background, and that no assignment unintentionally suggests an order or meaning you do not intend. Save the final color values and labels together so they can be applied consistently when the chart is updated.