Skip to main content
Guides

Okabe Ito Palette: Exact Colors and Accessible Usage Guide

Use this Okabe Ito palette reference to copy all 8 hex and RGB values, add them in Python, R, MATLAB, and CSS, and check accessibility limits.

FigEditor Team

The Okabe-Ito palette is a set of eight colors designed so that categories remain distinguishable for many viewers with common forms of color-vision deficiency. It was proposed by Masataka Okabe and Kei Ito as part of guidance on "color universal design", and it is now a common default for scientific plots. This page gives the exact values, code to use them, and the limits you should know about.

The eight Okabe Ito colors

NameHexRGB
Black#0000000, 0, 0
Orange#E69F00230, 159, 0
Sky blue#56B4E986, 180, 233
Bluish green#009E730, 158, 115
Yellow#F0E442240, 228, 66
Blue#0072B20, 114, 178
Vermillion#D55E00213, 94, 0
Reddish purple#CC79A7204, 121, 167

Black is part of the set, which is useful for text, axes, or a reference category. Yellow has low contrast on white, so it is better for filled areas next to a dark outline than for thin lines or text on a white background.

When to use this palette

The palette is designed for categorical data: groups, conditions, treatments, or classes that have no natural order. It is a poor fit for continuous or ordered values such as expression level or temperature. For those, use a perceptually ordered sequential or diverging colormap instead.

Eight colors is also a practical ceiling. If a figure needs more categories than that, consider grouping, faceting into small multiples, or labeling lines directly rather than adding near-duplicate colors.

Assign colors by meaning, not by plot order

The most important habit is to attach each color to a category once, for the whole paper. If "control" is sky blue in Figure 1, it should be sky blue in Figures 2, 3, and the supplement. Readers then learn the mapping and do not have to re-read every legend.

A suggested approach: write the mapping in one place (a small config or dictionary) and import it into every plotting script.

Use the palette in Python

Store the hex values in a constant and map categories explicitly.

OKABE_ITO = {
    "black": "#000000",
    "orange": "#E69F00",
    "sky_blue": "#56B4E9",
    "bluish_green": "#009E73",
    "yellow": "#F0E442",
    "blue": "#0072B2",
    "vermillion": "#D55E00",
    "reddish_purple": "#CC79A7",
}

GROUP_COLORS = {
    "control": OKABE_ITO["sky_blue"],
    "treated": OKABE_ITO["vermillion"],
}

In Matplotlib you can also set the default cycle with plt.rcParams["axes.prop_cycle"] = cycler(color=list(OKABE_ITO.values())), but explicit mappings survive reordering better than cycle position.

Use the palette in R

Create a named character vector and pass it to the scale function. Names make the mapping stable even if factor order changes.

okabe_ito <- c(
  black = "#000000", orange = "#E69F00", sky_blue = "#56B4E9",
  bluish_green = "#009E73", yellow = "#F0E442", blue = "#0072B2",
  vermillion = "#D55E00", reddish_purple = "#CC79A7"
)

group_colors <- c(control = okabe_ito[["sky_blue"]],
                  treated = okabe_ito[["vermillion"]])
# ggplot2: + scale_color_manual(values = group_colors)

Use the palette in MATLAB

MATLAB expects RGB values between 0 and 1, so divide the 0-255 values by 255.

okabe_ito = [
    0 0 0;
    230 159 0;
    86 180 233;
    0 158 115;
    240 228 66;
    0 114 178;
    213 94 0;
    204 121 167
] / 255;
colororder(okabe_ito);

Use the palette in CSS

Define the colors as custom properties so web figures, legends, and interactive charts share a single source.

:root {
  --oi-black: #000000;
  --oi-orange: #e69f00;
  --oi-sky-blue: #56b4e9;
  --oi-bluish-green: #009e73;
  --oi-yellow: #f0e442;
  --oi-blue: #0072b2;
  --oi-vermillion: #d55e00;
  --oi-reddish-purple: #cc79a7;
}

Accessibility limits

No palette makes a chart accessible on its own. Keep these limits in mind:

  • Colors are more distinguishable, not guaranteed distinguishable, for every viewer, and small marks or thin lines reduce the benefit.
  • Color should not be the only encoding. Add marker shapes, line styles, direct labels, or patterns.
  • Text colored with a palette entry needs its own contrast check against the background; several entries are too light for text on white.
  • Printed output and projectors can shift colors, so test in the medium you will use.

A practical scientific-figure workflow

  1. Decide the category-to-color mapping once and record it.
  2. Draw the figure with direct labels or distinct markers in addition to color.
  3. Preview in grayscale and with a color-vision simulator.
  4. Confirm the legend still makes sense without relying on hue alone.
  5. Apply the same mapping in every figure, including schematics.

If you build diagrams in an editable tool such as the FigEditor SVG editor, you can recolor shapes to these values directly and keep the mapping consistent when you reuse a figure across a paper, a poster, and slides.

Worked example: two groups that survive grayscale printing

Here is a small illustrative dataset, not an experimental result. The groups differ in color, marker and line pattern, so their identity does not depend on hue alone. This follows the redundant-encoding principle in Okabe and Ito’s original guidance.

import matplotlib.pyplot as plt

x = [0, 1, 2, 3]
fig, ax = plt.subplots(figsize=(4, 2.8), layout="constrained")
ax.plot(x, [1.0, 1.2, 1.1, 1.3], color="#0072B2",
        marker="o", linestyle="-", label="Control")
ax.plot(x, [1.0, 1.5, 1.7, 1.9], color="#D55E00",
        marker="s", linestyle="--", label="Treatment")
ax.set(xlabel="Time (h)", ylabel="Illustrative response (a.u.)")
ax.legend(frameon=False)
fig.savefig("two-groups.svg")

Change the group names, units and values to match your analysis. Then inspect a grayscale preview: the circle/solid and square/dashed combinations should still distinguish the series. The generated blog cover is an editorial illustration, not a color-accurate swatch file; use the exact hex values in the table and code when applying the palette.