Colorblind-Friendly Color Palettes for Websites (Hex Codes + Tests)

Featured graphic for “Colorblind-Friendly Color Palettes for Websites (Hex Codes + Tests)” showing color swatches and codes

Many people see color differently. For someone with a color vision deficiency, a red error and a green success message can look almost the same, and a chart with red and green lines can be impossible to read. If your website relies on those colors to carry meaning, some visitors simply miss the message.

The fix isn’t complicated. A colorblind-friendly palette uses colors that stay distinct for most types of color vision deficiency, and good design never relies on color alone. This guide explains what changes for colorblind users, gives you tested palettes with hex codes, and shows how to check your own site with tools already built into your browser.

How color vision deficiency changes what people see

“Colorblind” rarely means seeing no color at all. Most people with a color vision deficiency see color, but confuse certain hues.

Red-green deficiencies

The most common types reduce sensitivity to red (protan types, such as protanopia) or to green (deutan types, such as deuteranopia). Reds, greens, oranges, browns and some yellows can look similar. Red can also look darker than expected for people with protan types.

Blue-yellow deficiencies

Tritan types (such as tritanopia) are much less common. They make blues and greens, and some yellows and pinks, hard to tell apart.

Complete color blindness

Achromatopsia, seeing only in shades of gray, is rare. For these users, only lightness differences carry information, which is one more reason to never rely on hue alone.

7 rules for a colorblind-friendly palette

  1. Don’t use red and green as the only pair that carries meaning. It’s the most common confusion.
  2. Use blue and orange as your main contrasting pair. They stay distinct for red-green deficiencies.
  3. Vary lightness, not just hue. A light color next to a dark one stays distinct even in grayscale.
  4. Never use color alone. Add icons, labels, patterns or position (WCAG Success Criterion 1.4.1, Use of Color).
  5. Keep the number of colors small. Four to six clearly different colors are easier to tell apart than ten.
  6. Label chart lines and bars directly instead of relying only on a color legend.
  7. Check text contrast separately. Colorblind-safe doesn’t mean readable; text still needs at least 4.5:1.

Colorblind-friendly palettes with hex codes

The first three are well-known palettes designed by color-vision researchers. The rest are practical web palettes built from the same principles. The “Text on it” column shows whether white (#FFFFFF) or near-black (#111111) text reads better on each color, with its contrast ratio.

1. Okabe–Ito palette (8 colors)

Proposed by Masataka Okabe and Kei Ito, this is one of the most widely recommended colorblind-safe sets for charts.

ColorHexText on it
Orange#E69F00Dark (8.38:1)
Sky blue#56B4E9Dark (8.18:1)
Bluish green#009E73Dark (5.52:1)
Yellow#F0E442Dark (14.28:1)
Blue#0072B2White (5.19:1)
Vermillion#D55E00Dark (4.88:1)
Reddish purple#CC79A7Dark (6.17:1)
Black#000000White (21:1)

Use it for chart series, map categories and tags. Only blue #0072B2 works as text on white (5.19:1).

2. Paul Tol “bright” palette (7 colors)

Paul Tol designed this set for scientific graphics so that the colors stay distinct for colorblind viewers.

ColorHexText on it
Blue#4477AAWhite (4.70:1)
Red#EE6677Dark (6.12:1)
Green#228833White (4.53:1)
Yellow#CCBB44Dark (9.67:1)
Cyan#66CCEEDark (10.28:1)
Purple#AA3377White (6.09:1)
Gray#BBBBBBDark (9.84:1)

Tol’s blue and green only just pass 4.5:1 with white text, so use them for fills and large labels rather than small text.

3. Paul Tol “high contrast” palette (3 colors)

ColorHexText on it
Blue#004488White (9.62:1)
Yellow#DDAA33Dark (8.88:1)
Red#BB5566White (4.56:1)

Three colors with strong lightness differences, so they stay distinct even in grayscale. Ideal for simple charts with two or three series.

4. Blue and orange web UI

RoleHexText on it
Background#FFFFFFDark (18.88:1)
Primary buttons, links#0072B2White (5.19:1)
Highlight, badges#E69F00Dark (8.38:1)
Headings, text#111111White (18.88:1)

Blue and orange stay distinct for red-green deficiencies, and they differ in lightness too. Keep orange as a background for dark text; white text on #E69F00 fails (2.25:1).

5. Status colors with built-in backup

StatusHexAlways pair with
Error#D55E00An error icon and the word “Error”
Warning#E69F00A warning icon and label
Success#009E73A check icon and label
Info#0072B2An info icon and label

These come from the Okabe–Ito set, so error (vermillion) and success (bluish green) are easier to tell apart than a typical red and green. Even so, the icon and label are what make the message work for everyone.

6. Dark mode chart colors

On a dark background of #121212, these Okabe–Ito colors keep strong contrast for lines, dots and labels:

ColorHexContrast on #121212
Yellow#F0E44214.17:1
Orange#E69F008.32:1
Sky blue#56B4E98.12:1
Reddish purple#CC79A76.12:1
Bluish green#009E735.48:1
Vermillion#D55E004.84:1

Darker blue #0072B2 drops to 3.61:1 on #121212, so swap it for sky blue in dark mode.

7. Single-hue sequential scale (for maps and heatmaps)

StepHexText on it
Low#DEEBF7Dark (15.59:1)
Medium-low#9ECAE1Dark (10.78:1)
Medium-high#4292C6Dark (5.54:1)
High#08519CWhite (7.87:1)

These blues come from the ColorBrewer “Blues” scheme. One hue with clear lightness steps works for every type of color vision, including achromatopsia, because the order is carried by lightness.

Colorblind-friendly charts and data visualization

Charts are where color problems hurt most, because the color often is the data.

  • Label lines and bars directly at the end of each line or on each bar.
  • Add a second signal: dashed vs solid lines, different marker shapes, or patterns in bars.
  • Use lightness for order (low to high) and distinct hues for categories.
  • Highlight one series in a strong color and show the rest in gray when only one matters.
  • Limit categories. Beyond six or seven colors, group the smaller ones as “Other”.

How to test your palette

You don’t need extra software. Both major browsers can simulate color vision deficiencies.

Chrome and Edge DevTools

  1. Open DevTools (F12) and open the Rendering tab (from the DevTools menu, choose More tools > Rendering).
  2. Find Emulate vision deficiencies.
  3. Choose protanopia, deuteranopia, tritanopia or achromatopsia (there are also blurred-vision and reduced-contrast options).
  4. Look at your page: can you still tell every status, link and chart series apart?

Firefox

  1. Open Developer Tools and go to the Accessibility panel.
  2. Use the Simulate menu to choose protanopia, deuteranopia, tritanopia, achromatopsia or contrast loss.

Firefox’s documentation notes that simulation depends on its WebRender graphics engine, which isn’t enabled by default on every platform.

Check contrast too

Simulation shows whether colors stay distinct. A contrast checker shows whether text is readable. Do both.

Dark mode and accessibility

Colors that work on white can fail on dark backgrounds, as the dark-mode table above shows. If your site offers a dark theme, test both themes separately. Our dark mode guide covers how to build a dark palette that stays readable.

Common mistakes

  1. Red for error, green for success, and nothing else. Fix: add icons and text labels.
  2. A chart legend with eight similar colors. Fix: use fewer categories and direct labels.
  3. Assuming a colorblind-safe palette is also readable. Fix: check text contrast separately.
  4. Testing only one type of deficiency. Fix: check protanopia, deuteranopia and tritanopia, plus grayscale.
  5. Using mid-tone colors for small text. Many palette colors are made for fills, not text. Fix: use the “Text on it” notes above.
  6. Links shown only by color. Fix: make links look like buttons or add another visual cue, such as an underline.

FAQ

Which colors should I avoid for colorblind users?

Avoid relying on red vs green, green vs brown, or blue vs purple as the only way to show a difference. Use them if you like, but add labels, icons or lightness differences.

Is blue and orange colorblind safe?

Blue and orange are one of the safest pairs for the most common red-green deficiencies, especially when they also differ in lightness.

How do I test my website for color blindness?

Use Chrome or Edge DevTools (Rendering > Emulate vision deficiencies) or Firefox’s Accessibility panel (Simulate menu).

Does WCAG require colorblind-friendly colors?

WCAG requires that color is not the only way information is shown (Success Criterion 1.4.1) and that text has enough contrast. A colorblind-friendly palette helps you meet both.

What is the Okabe–Ito palette?

An eight-color set (#E69F00, #56B4E9, #009E73, #F0E442, #0072B2, #D55E00, #CC79A7, #000000) proposed by Masataka Okabe and Kei Ito to stay distinguishable for people with color vision deficiencies.

Design for everyone

Choose a tested palette, never let color carry meaning on its own, and check both simulation and contrast before you publish. Your site becomes clearer for every visitor, not only those with a color vision deficiency.

Scroll to Top