This free generator builds a pie chart color palette for 2 to 12 slices from one base color. It draws the pie, checks every pair of neighboring slices for normal and colorblind vision, picks a white or dark label for each slice, and gives you hex codes to copy.
Tool by Ryan Doyle, who built Pie Chart Generator. Updated November 29, 2026.
| Slice | Hex | Label | On white |
|---|---|---|---|
| 1 | White 5.1:1 | 5.1:1 | |
| 2 | Dark 8.5:1 | 2.2:1 | |
| 3 | White 5.5:1 | 5.5:1 | |
| 4 | Dark 8.8:1 | 2.2:1 | |
| 5 | White 8.9:1 | 8.9:1 |
The closest pair of touching slices for each kind of vision, as a distance where black to white is 100. Under 10 the two read as shades of one color. 3 of 5 colors reach 3:1 against a white page.
#316CCB, #A8B723, #A24598, #20C5BA, #823000
--slice-1: #316CCB; --slice-2: #A8B723; --slice-3: #A24598; --slice-4: #20C5BA; --slice-5: #823000;
backgroundColor: ["#316CCB", "#A8B723", "#A24598", "#20C5BA", "#823000"]
One per slice. In 21,401 charts downloaded from Pie Chart Generator (January 29 to November 29, 2026), the median chart had 5 slices and 78.6% had six or fewer, so the generator opens at 5 and a palette of five or six colors covers most charts. Above eight slices, neighbors start to look alike even in a good palette; group the smallest slices into Other or use a bar chart.
Most people keep the colors they start with. Of 2,190 palette selections in our editor, 71.2% kept the default. Among the 631 switches to another palette, Pastel was the most picked (177). Whatever colors you start with tend to stay, so it pays to start with a set that passes the checks above.
| Mode | Use it for | What it does |
|---|---|---|
| Distinct hues | Unrelated categories (products, regions, parties) | Spaces hues evenly round the color wheel from your base color, every other slice lighter, in the order that keeps touching slices furthest apart |
| Analogous | A softer, on-brand look for 3 to 6 slices | Hues within 70 degrees either side of the base |
| One hue, light to dark | Ranked or ordered data (survey scales, age bands) | Your base hue from dark to light |
| Blend between two colors | Two brand colors, or a scale from low to high | Even steps from the base color to the second color |
| Okabe-Ito | Charts that must work for colorblind readers | The eight-color set by Masataka Okabe and Kei Ito, in its published order |
Colors are built in OKLCH, the cylinder form of Björn Ottosson's OKLab color space, where equal steps look like equal steps to the eye. That keeps a yellow slice from glaring next to a dull blue one. A color that falls outside what a screen can show has its saturation lowered until it fits.
Each pair of touching slices, including the last slice and the first, is measured in OKLab for normal vision and for three kinds of color blindness, simulated with the Machado, Oliveira and Fernandes (2009) model at full strength. Lightness survives every kind of color blindness, which is why the distinct-hues mode alternates light and dark slices. It also tries every order of its hues round the pie and keeps the one whose closest touching pair, for any of the four kinds of vision, is furthest apart. With the settings above, the closest pair for normal vision is 29.6 apart and the closest pair for any vision is 20.2 (deuteranopia (green-blind)).
Label color uses the WCAG contrast ratio. WCAG asks for 4.5:1 for normal text and 3:1 for large text (SC 1.4.3), and 3:1 for the parts of a chart needed to read it (SC 1.4.11), though the W3C says that rule doesn't apply when each slice carries its own label and value. Our charts print the percentage on every slice for that reason.
What the top results for this search offered when we read them on November 29, 2026.
| Tool | Colors | Colorblind check | Where it wins |
|---|---|---|---|
| This generator | 2 to 12, five modes | Yes, three kinds, per neighboring slice | Pie-specific: slice preview with labels, label color per slice, opens in a pie chart maker |
| Learn UI Design data viz picker | 3 to 8; palette, single hue or divergent | Not shown on the page | Visually equidistant palettes between colors you pick, light or dark background, SVG export |
| Coolors | General palette generator | Separate contrast checker tool | Huge library of palettes to explore, image picker, palette visualizer; a paid Pro plan |
| SchemeColor, Simple Pie Chart | A fixed set of 3 (#EC6B56, #FFC154, #47B39C) | No | RGB, CMYK, nearest RAL and PANTONE numbers; downloads as PNG, JPG, PDF or SVG |
Want a ready-made set instead? The pie chart color palettes gallery has 20 named sets with hex codes, and 15 more palettes with hex codes is the blog version, grouped by style.