Scientific Color Palette Tool

Scientific Color Palette Generator for Colorblind-Safe Research Figures

Pick a palette family, preview it on your actual chart type, and copy hex, Python, R, or CSS in one click — 10 colorblind-safe palettes from Okabe-Ito to Crameri Vik, plus presets matching Nature, Science, Cell, NEJM, and PNAS.

Colorblind-FriendlyHex · Python · R · CSSPalette Tool Is Free

Distinct hues for unordered groups — treatments, species, cohorts.

Selected palette

Okabe-Ito

8 colors

Colorblind-safe
000000
E69F00
56B4E9
009E73
F0E442
0072B2
D55E00
CC79A7
Source: Okabe & Ito, 2002

Best for: unordered groups, treatment comparisons, multi-line charts.

Figure preview

Same data, redrawn with the selected palette

Group 1Group 2Group 3Group 4
#000000, #E69F00, #56B4E9, #009E73, #F0E442, #0072B2, #D55E00, #CC79A7

All 10 Scientific Color Palettes at a Glance

Click any palette card to load it into the generator above

Okabe-Ito

The color-blind safe default

Colorblind-safe
000000E69F0056B4E9009E73F0E4420072B2D55E00CC79A7

Eight discrete colors designed by Okabe and Ito (2002) so every category stays distinguishable for readers with protanopia, deuteranopia, and tritanopia. The most widely recommended categorical palette in scientific publishing.

→ Up to seven groups in bar charts, scatterplots, and multi-line figures.

Source: Okabe & Ito, 2002

Paul Tol Bright

Print-safe qualitative

Colorblind-safe
4477AAEE6677228833CCBB4466CCEEAA3377BBBBBB

Paul Tol's bright set: seven distinct colors validated for color blindness and tested against PDF print conversion. The categorical palette of choice when Okabe-Ito's yellow is too soft for projector display.

→ Seven-group survey charts, lecture slides, posters that must reproduce in print.

Source: Paul Tol, 2018

Tableau 10

The modern default

Not CB-safe
1F77B4FF7F0E2CA02CD627289467BD8C564BE377C27F7F7FBCBD2217BECF

Tableau's flagship categorical palette and matplotlib's post-2015 default. Not colorblind-safe — adjacent reds and greens collide for deuteranopes — but visually balanced and widely recognized in dashboards.

→ Internal analytics dashboards and stakeholder decks where review accessibility is informal.

Source: Tableau Software (matplotlib 2.0+ default)

ColorBrewer Set2

Soft categorical fills

Not CB-safe
66C2A5FC8D628DA0CBE78AC3A6D854FFD92FE5C494B3B3B3

ColorBrewer's pastel categorical set: lower saturation, easier on the eye for figures with large filled areas. Not fully colorblind-safe.

→ Stacked area charts, pie charts, choropleth maps with up to eight categories.

Source: ColorBrewer 2.0 (colorbrewer2.org)

Glasbey

High-category categorical

Not CB-safe
D700008C3CFF02880000ACC798FF00FF7FD16C004FFFA530

An algorithmically generated palette of maximally distinct colors for cases where you genuinely need 10 or more categories. The 8 hex codes shown here are the first 8 of colorcet's glasbey_bw_minc_20 (avoids near-black and near-white). Not colorblind-safe, but the only honest answer when other palettes collapse.

→ Cluster plots with 10–20 categories, cell type maps, situations where direct labeling is not feasible.

Source: colorcet glasbey_bw_minc_20, first 8

Viridis

The sequential workhorse

Colorblind-safePerceptually uniform
4401543B528B21908C5DC863FDE725

Perceptually uniform purple-to-yellow gradient with monotonically increasing luminance. Designed to stay legible under color vision deficiency and to survive grayscale conversion. Replaces matplotlib jet for serious work.

→ Heatmaps, density plots, intensity maps, sequential continuous data.

Source: matplotlib van der Walt & Smith, 2015

Cividis

Colorblind-optimized sequential

Colorblind-safePerceptually uniform
00204D414D6B7C7B78BCAF6FFFEA46

Mathematically optimized for deuteranomaly and protanomaly. The dark-blue-to-yellow ramp is monotonic in luminance for both standard and most CVD vision, and the palette reproduces predictably in print.

→ Sequential figures where the audience is known to include colorblind readers.

Source: Nuñez, Anderton & Renslow, 2018 (PLOS ONE)

YlOrRd

Warm sequential

Not CB-safe
FFFFB2FECC5CFD8D3CF03B20BD0026

ColorBrewer's yellow-orange-red ramp for sequential warm data. Not colorblind-safe — readers with protanopia compress the red end — but unmatched for thermal and risk-tier figures.

→ Risk heatmaps, temperature ramps, severity indices where warmth carries semantic meaning.

Source: ColorBrewer 2.0 sequential

RdBu

The diverging standard

Colorblind-safe
CA0020F4A582F7F7F792C5DE0571B0

Red-white-blue diverging palette from ColorBrewer. Each side ramps perceptually toward a neutral midpoint, making it ideal for above- and below-zero data. The most-published diverging palette in research figures.

→ Correlation matrices, log-fold-change heatmaps, anomaly maps.

Source: ColorBrewer 2.0 diverging

Crameri Vik

The scientific diverging

Colorblind-safePerceptually uniform
001261307DA6ECE5E0C37243590008

Fabio Crameri's perceptually uniform diverging colormap, designed for geophysics but adopted widely in neuroscience and climate science. Colorblind-safe by construction, with symmetric luminance about the midpoint. The 5 hex stops shown here are evenly sampled from the official 256-color vik.txt distribution.

→ Geophysical anomaly maps, neuroscience activation maps, any diverging plot that must pass CB review.

Source: Crameri Scientific Colour Maps, vik (5-stop sampled)

What Is a Scientific Color Palette?

A scientific color palette is a carefully selected set of colors optimized for research figures. Unlike decorative or brand palettes, scientific palettes are designed against three constraints: accessibility (legible for color-vision-deficient readers), perceptual uniformity (equal numeric steps map to equal visual steps), and reproducibility (consistent across displays, print, and grayscale handouts).

Okabe-Ito, Paul Tol's qualitative sets, Cividis, and Fabio Crameri's Scientific Colour Maps each come with a published design rationale; Tableau 10 and ColorBrewer Set2 are widely used standard palettes. None of them is a designer's one-off aesthetic preference.

Pick the Right Palette in 30 Seconds

Cross-reference data type and category count to a recommended palette

Data typeCategoriesRecommended paletteCB-safe
Categorical groups (treatments, species)2–7Okabe-ItoYes
Categorical groups, print-heavy figure2–7Paul Tol BrightYes
Categorical groups, dashboard2–10Tableau 10No
Categorical, high category count10+GlasbeyNo
Sequential (heatmap, density)ContinuousViridisYes
Sequential, CB-priority audienceContinuousCividisYes
Diverging (above- and below-zero)ContinuousRdBuYes
Diverging, geophysics or climateContinuousCrameri VikYes

Why Colorblind-Friendly Palettes Matter

Approximately 8 percent of men and 0.5 percent of women have some form of color vision deficiency. Many high-impact journals — including Nature, Science, and PNAS — now require or strongly recommend colorblind-accessible figures in their author guidelines.

  • Reviewers with deuteranopia or protanopia see your figure differently than you do — flagging red-green collisions is one of the most common revision requests.
  • Colorblind-safe palettes look indistinguishable from standard palettes for readers with normal vision, so you lose nothing aesthetically.
  • Standard palettes such as Okabe-Ito and Viridis make your work immediately recognizable as professional in the eyes of a peer reviewer.
  • Colorblind-safe palettes such as Viridis and Cividis stay distinguishable when printed in grayscale.
  • Your figures reproduce predictably in grayscale printing.

What Top Journals Actually Use

Informed by ggsci conventions and observation of recent figures

No high-impact journal publishes an official house palette. The conventions below are pieced together from the ggsci R package (a community-maintained set of palettes inspired by major publishers), the Okabe-Ito categorical palette widely accepted in life sciences, and observation of recently published figures. Treat them as starting points, not as official style guides.

Nature, Nature Methods, Nature Communications

Muted qualitative palettes (Okabe-Ito and close relatives) plus Viridis-family sequentials. The author guide explicitly requires colorblind accessibility, and reviewers cite this guideline in revision requests. Preset source: Okabe-Ito 5-color subset.

Science, Science Advances

Slightly warmer palette mix, heavier use of orange-red diverging gradients. Most figures keep to three or four colors per panel; anything beyond that draws pushback in revision. Preset source: ggsci R package pal_aaas().

Cell Press (Cell, Neuron, Immunity)

Slightly desaturated Tableau-adjacent reds and blues (#D62728, #1F77B4). Viridis or RdBu for heatmaps. Distinctive in print without being aggressively saturated. Preset source: Tableau 10 5-color subset.

NEJM, JAMA, BMJ, Lancet

Conservative: navy, dark red, gray, with occasional teal. Clinical journals reward palette restraint — editors here actively prefer fewer colors per figure. Preset source: ggsci R package pal_nejm().

PNAS, eLife, PLOS Biology

The most adventurous of the high-impact set — strong adoption of Viridis-family sequentials and Crameri scientific colormaps. Vik and Roma appear in geoscience and neuroscience figures regularly. Preset source: Viridis 5-stop, used here as a stand-in for the PNAS-style sequential workflow.

The pattern across all of these: the higher the impact factor, the fewer colors per figure. If your draft has eight colors in a single panel, collapse it to three or four and use shape, facet, or direct labeling for the rest. Treat the journal presets above as defensible starting points — none of them is a journal-issued style guide.

How to Use These Hex Codes

Paste-ready snippets for the tools that produce most research figures

Python (matplotlib, seaborn)

Wrap the hex list in ListedColormap for heatmaps, or pass it directly to color= for categorical plots. Seaborn's sns.set_palette() accepts the same list. The generator's Python tab ships the full snippet including the import line.

R (ggplot2)

Use scale_color_manual(values = palette) or scale_fill_manual(values = palette) for categorical data. For sequential data, use scale_color_gradientn(colours = palette) with the Viridis or Cividis hex codes.

Excel and PowerPoint

Format > Shape Fill > More Colors > Custom > Hex (Excel 365), or RGB conversion on older Excel. Save the palette as a custom theme color set in your Office template for reuse.

CSS, D3, Vega-Lite

Drop CSS custom properties into your dashboard root, or pass the hex list as Vega-Lite's range array. D3 accepts the same list as input to d3.scaleOrdinal().

Illustrator, Figma, Affinity

Paste hex codes into the color picker, then save the palette as a Creative Cloud Library, Figma style set, or Affinity swatch group for repeat use across figures.

Five Mistakes That Get Figures Sent Back

What journal reviewers and copy editors flag most often

1. Too many colors in one panel

More than seven categorical colors collapses for almost every CVD type and most projector displays. Split the figure into panels or use facets — adding more hues never works.

2. Red-green collisions for categorical data

The single most common revision request. If two adjacent categories use red and green, deuteranopes see them as the same color. Switch to Okabe-Ito or Paul Tol Bright.

3. Jet (rainbow) for heatmaps

Matplotlib jet and other rainbow palettes are not perceptually uniform — visual contrast spikes in green-yellow and flattens in dark blue. Use Viridis or Cividis instead.

4. Categorical palette on ordered data

Concentration, density, and dose-response data all need sequential palettes. Using Tableau 10 for a five-step dose response makes the numerical order impossible to read at a glance.

5. Skipping the grayscale check

Many readers print figures in black and white. Test your figure in grayscale before submitting — Okabe-Ito and Viridis hold up; pastel palettes collapse to indistinguishable greys.

Get Publication-Ready Color Palettes in Three Clicks

No matplotlib hunting. No re-running scripts. No more red-on-green submissions.

Stop rebuilding the same color scheme across Python, R, and Illustrator. Pick a palette family, preview it on your actual chart type, and copy the paste-ready snippet — every palette card states whether it is colorblind-safe and perceptually uniform, and where its hex codes come from.

1

Pick a Palette Family

Choose Categorical for unordered groups and treatments, Sequential for ordered data like heatmaps and density, Diverging for above- and below-midpoint values, or Journal for presets tuned to Nature, Science, Cell, NEJM, and PNAS figure conventions. Each palette card shows a Colorblind-safe tag so you know what is review-proof.

2

Preview on Your Actual Chart Type

Switch between grouped bar, multi-series line, and heatmap previews so you see exactly how Okabe-Ito reads on a treatment comparison versus how Viridis reads on a 2D matrix. The preview redraws live as you switch palettes — no exporting, no Photoshop overlay.

3

Copy Hex, Python, R, or CSS

Grab a hex list for Illustrator and Figma, a matplotlib ListedColormap snippet for Python, a scale_color_manual() block for ggplot2, or CSS custom properties for D3 and dashboards. Every snippet is paste-ready — imports included, order preserved, no helper libraries to chase.

One Generator, Three Figure-Making Workflows

Bench researchers · Data scientists · Lecturers and slide designers

Pick the same Okabe-Ito for a Cell figure, a Tableau-style executive dashboard, and a colorblind-safe lecture slide — without rebuilding the palette in three different tools.

Bench Researchers and Graduate Students

Nature · Science · Cell · eLife · PLOS · PNAS

Figures get sent back for two reasons: too many colors, or red-green collisions. The generator gives you Okabe-Ito for seven groups or fewer, Crameri Vik for diverging heatmaps that pass colorblind review, and Cividis for sequential data that survives grayscale conversion.

  • Okabe-Ito, Tol Bright, Viridis, Cividis — palettes common in published figures
  • Per-palette colorblind-safe and perceptually-uniform tags next to every swatch
  • Crameri Vik and the full scientific colormap set, not just matplotlib defaults
Build your figure palette

Data Scientists and BI Engineers

matplotlib · seaborn · ggplot2 · Plotly · Vega-Lite

You don't need another color picker — you need a snippet that drops into ListedColormap, scale_color_manual(), or vega-lite range. Copy the exact line you would have typed: imports included, hex order preserved, ready for pyplot.bar() or ggplot() + scale_*.

  • Python: LinearSegmentedColormap.from_list and ListedColormap snippets
  • R: scale_color_manual() and scale_fill_manual() blocks with named vectors
  • CSS custom properties for D3, Observable Plot, and Vega-Lite range specs
Copy the snippet

Lecturers, Course Designers, and Slide Authors

Lecture slides · Textbook figures · Poster sessions

Your slides go to a 200-seat lecture hall, an online course replay, and a printed poster — all of them have someone in the room with a color vision deficiency. Pick a palette that holds up on projector, retina display, and grayscale handout.

  • Print-safe palettes that don't collapse under low-toner grayscale conversion
  • PowerPoint and Keynote hex paste workflow with single-click Excel format
  • Cividis and Tol Bright — both rated colorblind-safe and lecture-room legible
Pick a teaching palette

Built for Researchers, Not Logo Designers

Every palette here is documented in the scientific literature and common in published figures — not just an aesthetic recommendation

The Scientific Color Palette Generator collects the categorical, sequential, and diverging palettes that reviewers, editors, and replication-friendly data scientists actually use — with paste-ready code for every tool that produces a research figure.

Standard library

10 palettes common in published figures

Okabe-Ito · Tol Bright · Tableau 10 · Set2 · Viridis · Cividis · YlOrRd · RdBu · Vik · Glasbey

The palettes reviewers see most often, with hex codes drawn from their original publications. No proprietary AI-generated palettes that get flagged in review.

Colorblind tagging

Per-palette colorblind status — not buried in docs

Eight percent of male reviewers will see your figure differently

Every palette card shows a Colorblind-safe or Not CB-safe tag next to its name. About 8% of men and 0.5% of women have a color vision deficiency — the tag tells you in two seconds whether you are risking that pool.

Code-ready snippets

Paste-ready Python, R, and CSS — not just hex

Imports included. Hex order preserved.

Copy a matplotlib ListedColormap, a ggplot2 scale_color_manual() block, or CSS custom properties — full snippet, ready to drop into your existing notebook or stylesheet.

Journal-informed presets

Nature, Science, Cell, NEJM, PNAS conventions

Informed by ggsci R package + observation of recent figures

No high-impact journal publishes an official house palette. The five presets are pieced together from public conventions: Okabe-Ito subset for Nature, ggsci pal_aaas() for Science, Tableau subset for Cell Press, ggsci pal_nejm() for NEJM, and Viridis for PNAS. Each preset's source is shown on its card.

Perceptually uniform

Viridis, Cividis, and Crameri — built for data

Equal numeric steps map to equal visual steps

Sequential palettes that ramp luminance evenly. Without uniform luminance, your heatmap exaggerates whatever value happens to fall in the middle of the color scale — the source of most figure misreads.

Palette tool is free

All palettes free to use

Cividis is not behind a paywall.

The palette tool costs nothing: no paywall on any palette and no pro tier for Crameri Vik. Only Vizcept's AI-drawn figures use credits. Bookmark the page and use it the next time you open a notebook.

The palette tool stays free. Vizcept's AI figure generators run on credits.

The Scientific Color Palette Generator costs nothing — every palette, every snippet. Only AI-drawn figures use credits: if you also need Vizcept to draw the figure itself (graphical abstracts, conceptual frameworks, syntax trees, PRISMA flow diagrams), those generators run on credits or a Pro plan.

Student or teacher? Apply for an education discount

Apply now

Used in Papers, Theses, and Lecture Decks

What researchers, data scientists, and educators say about Vizcept's scientific color palettes.

D

Dr. Priya Raman

Postdoctoral Fellow, Computational Biology

I used to keep a sticky note of the Okabe-Ito hex codes on my second monitor. Now I copy the ListedColormap line and paste it into the notebook — three seconds, no typos, no off-by-one in the order.

L

Lukas Weber

PhD Candidate, Geophysics

The Crameri Vik preset alone saved me a revision round. My anomaly map looked fine on my laptop until a colorblind reviewer flagged the diverging palette. The CB-safe tag pointed me to the right answer in under a minute.

S

Sarah Chen

Senior Data Scientist, Healthcare Analytics

Our slide deck has to look the same in Tableau, matplotlib, and PowerPoint. I copy the hex list once, paste it everywhere, and the brand-adjacent palette never drifts between tools.

Frequently Asked Questions

Everything researchers ask about scientific color palettes

There is no single best palette — pick by data type and audience. For seven or fewer categorical groups, the gold standard is Okabe-Ito because every category stays distinct under common forms of color blindness. For sequential data such as heatmaps and intensity maps, use Viridis or Cividis (Cividis is CB-optimized). For diverging data around a midpoint (above- and below-zero, effect sizes), use RdBu or Crameri Vik. All four families appear regularly in figures published in Nature, Science, Cell, and PNAS.

Yes. Viridis was designed to be colorblind-friendly and perceptually uniform. It ramps from dark purple to bright yellow with monotonically increasing luminance, so the highest values stay brightest for readers with protanopia or deuteranopia, and the palette converts safely to grayscale. Cividis is even better for the most common color vision deficiencies because it was mathematically optimized for deuteranomaly and protanomaly.

Categorical (qualitative) palettes use visually distinct hues for unordered groups — treatments, species, cohorts. Sequential palettes ramp a single hue from light to dark for ordered data — concentration, density, intensity. Diverging palettes use two contrasting hues meeting at a neutral midpoint — above- and below-zero changes, log-fold differences. Pick the family that matches your data structure; using a categorical palette for ordered data is the most common figure mistake reviewers flag.

Nature does not publish a fixed house palette, but its author guide explicitly requires color-blind accessibility. Reviewing recent issues, the recurring conventions are Okabe-Ito and close relatives for categorical data, and Viridis or Cividis for sequential heatmaps. Nature Communications and Nature Methods enforce these guidelines more strictly than the flagship journal.

In Python with matplotlib, pass the hex list to plt.bar(..., color=palette) or wrap it in ListedColormap(palette) for heatmaps. In ggplot2, use scale_color_manual(values = c('#E69F00', ...)) or scale_fill_manual(). This generator gives you the full snippet — including the import line — for every palette, so there is no need to retype the hex codes manually.

The honest rule from high-impact journals: the higher the impact factor, the fewer colors per figure. Three to five colors is a safe upper bound for most figures; above seven, even Okabe-Ito breaks down for some CVDs. If you need more than 10 categories, the right move is usually to split the chart, use direct labels, or replace color with shape or facet — not to add more colors.

Yes — this palette tool is free; only Vizcept's AI-drawn figures use credits. ColorBrewer (colorbrewer2.org) is the longest-running free option focused on sequential, diverging, and qualitative palettes for maps. Fabio Crameri's Scientific Colour Maps are freely downloadable as well. This generator unifies all three traditions, plus journal-style presets, in one interface.

For a normal heatmap with no meaningful midpoint, use Viridis or Cividis — both are perceptually uniform and colorblind-safe. For a heatmap centered on zero (correlation matrices, log fold change, differential expression), use a diverging palette like RdBu or Crameri Vik. Avoid the matplotlib jet colormap — its non-monotonic luminance distorts your data and it fails colorblind accessibility tests.

Yes. Every palette here exports as a hex code list you can paste into Excel (Format > Shape Fill > More Colors > Custom > Hex on Excel 365) or PowerPoint (Format Shape > Fill > More Colors). For repeated use, save the palette as a custom theme color set in your Office template — both Excel and PowerPoint will then pick it up automatically.

Okabe-Ito is an eight-color categorical palette designed by Masataka Okabe and Kei Ito for color-vision-deficient readers. Every color stays distinguishable under protanopia, deuteranopia, and tritanopia. It is the most widely recommended categorical palette in scientific publishing and the default for most journal template repositories.

Need to Draw the Figure Too?

Vizcept's AI generators turn a paragraph of your manuscript into a graphical abstract, conceptual framework, signaling pathway, or PRISMA flow diagram . Check every label, arrow, and number in the result.

Unlock all tools

One subscription unlocks every Vizcept AI diagram tool — from free body diagrams and syntax trees to biology diagrams and more.

View pricing

Other tools you might like

Explore more AI diagram tools across subjects — from the same discipline and beyond.

AI Diagram MakerPopular

AI Diagram Maker

Describe any topic in plain English and get a publication-ready scientific diagram in seconds.

Open tool
Conceptual Framework GeneratorNew

Conceptual Framework Generator

Turn variables, mediators, moderators, and hypotheses into a labeled conceptual framework for thesis and journal research.

Open tool
Graphical Abstract MakerNew

Graphical Abstract Maker

Paste your manuscript abstract — get a journal-ready graphical abstract in Elsevier, Cell Press, Wiley, or ACS dimensions in under a minute.

Open tool
Bell Curve MakerNew

Bell Curve Maker

Type a mean and standard deviation, paste data, or set up a confidence interval or hypothesis test, and get an exact normal curve with the shaded area, its probability and the steps.

Open tool
Violin Plot MakerNew

Violin Plot Maker

Paste your data and get a violin plot in your browser — grouped or single, box or quartiles inside, adjustable bandwidth, editable SVG and 300 DPI PNG. Free to paste and download; or describe your data and let AI fill it in.

Open tool
Box Plot MakerNew

Box Plot Maker

Paste your data or a five-number summary and get a box and whisker plot with quartiles, outliers and labels. Choose the TI-84, Excel or R quartile method; export editable SVG or 300 DPI PNG. Free to paste and download.

Open tool
Scatter Plot MakerNew

Scatter Plot Maker

Paste two columns from Excel or a CSV and get a scatter plot with the line of best fit, its equation, r and R². Groups, point labels and step-by-step working; export editable SVG or 300 DPI PNG. Free to paste and download.

Open tool
Dot Plot MakerNew

Dot Plot Maker

Paste a list of numbers or a frequency table and get a dot plot on a number line, with dots or X marks, mean and median markers, and the mean, median, mode and range worked out step by step. Export editable SVG or 300 DPI PNG. Free to paste and download.

Open tool
Featured on Findly.tools