Okabe-Ito
Colorblind safeThe default choice for categorical data: lines, points, and bars.
Palette library for paper figures
Ready-made color palettes for every kind of paper figure: colorblind safe sets for data plots, palettes in the style of Nature, Science and Lancet figures, and the light palettes that AI conference papers really use. Each one has its HEX codes, code for R, Python, MATLAB and CSS, and a button that opens the AI figure maker in those colors.
Each collection has its own page with every palette in full, code for R and Python, and a colorblind check.
Filter by the kind of figure. Click a color to copy it, copy the whole palette, or open the AI figure maker with these colors applied.
The default choice for categorical data: lines, points, and bars.
Lines and their labels; Tol's default qualitative scheme.
Two or three groups that must also survive greyscale printing.
Screen figures and dashboards that need stronger colours.
Up to nine categories, such as map regions or many groups.
Five or fewer groups where saturated colours are acceptable.
Continuous values from low to high (heatmaps, density, intensity).
Sequential data where the scale should look nearly the same with red-green deficiency.
Values around a meaningful midpoint, such as fold change or anomalies.
Correlation matrices and signed effects centred on zero.
Bright, clean. Inspired by plots in Nature Reviews Cancer.
Dark, formal. Inspired by plots in Science from AAAS.
Calm, clinical. Inspired by plots in The New England Journal of Medicine.
High contrast. Inspired by plots in Lancet Oncology.
Muted, warm. Inspired by plots in The Journal of the American Medical Association.
Blue and mustard. Inspired by plots in the Journal of Clinical Oncology.
Saturated brand colors. Inspired by the BMJ living style guide.
Full rainbow. Inspired by the Frontiers logo.
Shared by 135 of 1,801 AI conference figures.
Shared by 107 of 1,801 AI conference figures.
Shared by 86 of 1,801 AI conference figures.
Shared by 70 of 1,801 AI conference figures.
Shared by 53 of 1,801 AI conference figures.
Shared by 52 of 1,801 AI conference figures.
Strong accent colors measured in 76 AI conference figures.
Strong accent colors measured in 67 AI conference figures.
Strong accent colors measured in 60 AI conference figures.
Six rules that hold whichever palette you pick.
Groups with no order need distinct hues (a qualitative palette). Values from low to high need one smooth ramp such as viridis. Values around a midpoint, such as fold change or correlation, need a diverging scale with a light center.
Past five to eight colors, categories get hard to tell apart, and Elsevier’s artwork guide suggests three or four per figure. With more groups, label them directly or add markers and line styles.
About 8% of men and 0.4% of women of European descent have red-green color vision deficiency. Avoid red against green, never let color be the only cue, and check the figure in a colorblind simulation.
Give each group, model or condition a color and keep it in every panel and every figure of the paper. A reader who learns “blue is our method” in Figure 1 should not have to relearn it in Figure 4.
Large boxes in a diagram take light tints so black text stays readable. Thin lines, points and the one element you want noticed take strong colors. That is why diagram palettes and plot palettes differ.
Journals ask for legibility rather than particular colors: RGB files, no colored text, no red against green. Nature, for example, asks for an accessible palette and names the Wong palette, the same colors as Okabe-Ito.
It depends on the figure. For categories in a data plot, Okabe-Ito is the safest default: eight colors that stay apart for color-blind readers. For heatmaps and other continuous values, use viridis or cividis. For method diagrams and a Figure 1, light tints like the AI conference palettes keep text readable. Use one palette across the whole paper.
As few as the message needs. Five to eight distinct colors is the practical limit for categories, and many guides advise three or four per figure. If a plot has more groups, highlight the ones that matter in color and show the rest in grey, or split it into panels.
The sets in the colorblind friendly collection (Okabe-Ito, Paul Tol’s schemes, IBM, viridis and cividis) are designed to be. The journal-style and AI conference palettes are not: some of their pairs look alike to color-blind readers. Their pages show which pairs and a safer subset for each.
Open the code panel of any palette. In R, scale_color_manual(values = c(...)) applies a HEX list in ggplot2, and the ggsci package has the journal-style palettes built in. In Python, set the HEX list as matplotlib’s color cycle, or pass it to seaborn with sns.set_palette([...]). MATLAB and CSS versions are there too.
Yes. Upload it to the color palette from image tool: it lists the main colors with their HEX codes and share of the image, and gives the same R, Python and CSS code. The colors of any figure in our paper figure gallery are shown in its large view.
No journal we know of requires particular colors. Guidelines ask that figures read clearly: an accessible palette, no red against green, no colored text, and RGB color. Our journal figure requirements pages list the rules of 14 publishers.
Press Draw with these colors under any palette, and the AI figure maker opens with the colors applied. Describe the figure and get a first draft.
Open the AI figure maker