Blog

Color Blindness Simulator: Check Red and Green in Charts

Can colorblind viewers tell red and green lines apart? Check a chart with a color blindness simulator and pick colors that also survive grayscale printing.

The color blindness simulator showing a red, green and blue line chart converted into four views side by side: original, protan, deutan and grayscale
The chart checked in this article. In deutan vision the red and green lines move toward the same brown, and in grayscale the red and blue legend swatches become the same gray.
Contents

Separating series by color, as in “red is us, green is the competitor” or “green means on target, red means missed”, is probably the most common technique in chart-making. Yet about 5% of men (1 in 20) and about 0.2% of women in Japan, according to the Japanese Ophthalmological Society, distinguish certain combinations such as red and green differently from most people. Among men of Northern European ancestry the US National Eye Institute puts the figure at about 1 in 12. In a meeting of 40 people, even if only half are men, statistically one or two of them see color this way. On top of that, meeting documents are still often printed or photocopied in black and white, and then all color information is replaced by lightness.

The person who made the slides cannot check with their own eyes how the slides look to those readers. In this article I load a line chart with a very common color scheme into the browser-based Color Blindness Simulator and check, with numbers and screenshots, where the series stop being distinguishable. Then I fix not only the colors but also the line styles and labels, and check the fixed chart again. All image conversion happens inside the browser, and the documents you load are not sent anywhere.

The chart under test, and what the tool calculates

The test subject is a line chart of monthly sales for three stores, drawn in red, green and blue. I used the saturated red (#e23b3b), green (#2e9e4f) and blue (#1c6dd0) you often see in spreadsheet and web charts. The series names appear only in the legend at the top right, and the Store A and Store B lines cross in March. It is the typical design in which the reader identifies each line by looking up its color in the legend.

The tool multiplies each pixel of the loaded image by the dichromacy conversion matrices published by Machado, Oliveira and Fernandes (2009) to produce protan (type 1, less sensitive to red), deutan (type 2, less sensitive to green) and tritan (type 3, less sensitive to blue) views. Grayscale uses the ITU-R BT.709 luminance formula (0.2126R + 0.7152G + 0.0722B). Because the matrices are based on dichromacy, where color discrimination is lost the most, people with milder (anomalous trichromatic) color vision can often tell more apart than shown here. In other words, the tool shows a guide for the hardest case, and a document that remains distinguishable there can be considered distinguishable for most people.

Loading an image and comparing five views

I show the steps in the English version. When you open the page you see the “Check an image” box with three buttons.

The image input area of the English Color Blindness Simulator, with three buttons: Choose image, Paste from clipboard and Try a sample chart

  • “Choose image” lets you pick a saved chart image (PNG, JPEG, WebP, GIF and so on). You can also drop an image file onto the box.
  • “Paste from clipboard” loads a screenshot directly. Select an area with Win+Shift+S on Windows or ⌘+Control+Shift+4 on a Mac to copy it, then press the button or press Ctrl+V (⌘+V) over the box. This saves you from exporting PowerPoint or Excel charts as images.
  • If you have no image at hand, “Try a sample chart” loads a sample red-and-green bar chart.

This time I loaded my prepared chart with “Choose image”. Once it is loaded, five images appear side by side: the original (Original), protan (Protan), deutan (Deutan), tritan (Tritan) and grayscale (Grayscale).

Result of loading the red, green and blue line chart. Five panels are shown: original, protan, deutan, tritan and grayscale. In deutan both the red and green lines are brown, and in grayscale the red and blue legend swatches are the same gray
The chart before fixing. In deutan the Store A and Store B lines become similar browns, and in grayscale the legend swatches of Store A and Store C cannot be told apart.

Side by side, you can see that each type of color vision loses distinctions in a different way.

  • Deutan: both red and green shift into the ochre-to-brown range, and the Store A and Store B lines become almost the same color. After the two lines cross in March, it is hard to work out from the legend which line is which.
  • Protan: red and green also shift toward brown, but red becomes darker, so they are barely separated by lightness.
  • Tritan: red stays almost unchanged, while green and blue both shift toward blue-green. In this chart the Store C line runs far below the others, so it can be read by position, but the legend swatches look similar.
  • Grayscale: the lines can still be followed by position, but the Store A (red) and Store C (blue) legend swatches turn into grays of the same darkness. Someone who receives a black-and-white copy cannot match the lines to the legend.

The grayscale result is surprisingly easy to overlook. Red and blue look like opposite colors, yet in luminance red is 95 and blue is 99 (gray values from 0 to 255), almost the same gray.

Pressing “Save” on a panel saves that view as a PNG image. It is handy when you want to show colleagues the before and after side by side.

Using the palette check to see in numbers which pairs are close

Judging “do these look similar?” from the images alone varies from person to person. So I entered the chart’s series colors into “Palette check” at the bottom of the page to measure how hard they are to tell apart.

The initial state contains sample red, green, orange and blue, so remove the colors you do not need with the “×” next to each one, type #e23b3b, #2e9e4f and #1c6dd0 into the color code fields, and press Enter. If you need more colors, add a slot with “Add color” (up to 12 colors). Clicking the round swatch also lets you pick a color with the browser’s color picker.

Result of entering red, green and blue in the palette check. A table shows how each color looks in normal, protan, deutan, tritan and grayscale, with a warning that red and green look similar in deutan vision
The three colors before fixing. The red box below says that #e23b3b and #2e9e4f look similar in deutan (type 2) vision.

The table shows how each color looks in normal, protan, deutan, tritan and grayscale. Below it, “Pairs that become hard to tell apart” lists the pairs whose color difference ΔE* after conversion (the distance between colors in CIE Lab; the smaller the number, the closer the colors) is under 12. Reproducing the same calculation with the tool’s calculation code gave these color differences for each pair:

Pair Normal Protan Deutan Tritan Grayscale
Red #e23b3b and green #2e9e4f 112.5 33.5 8.8 120.7 13.3
Red #e23b3b and blue #1c6dd0 109.2 74.5 96.9 117.2 1.6
Green #2e9e4f and blue #1c6dd0 109.9 95.3 91.9 21.1 11.6

Red and green, normally more than 100 apart, shrink to 8.8 in deutan vision. That is the only pair the tool warned about.

However, the warning box only judges protan, deutan and tritan; grayscale is not included. As the table shows, red and blue are only 1.6 apart in grayscale, and that number is the “legend turns the same gray” effect seen in the images. For documents that may be handed out in black and white, you need to look down the “Grayscale” column at the right edge of the table yourself and check that no two grays of the same darkness sit next to each other.

The first fix that comes to mind is to replace the colors themselves with ones that are easier to tell apart. Here I chose the accent colors red (#FF4B00), green (#03AF7A) and blue (#005AFF) from ver.4 of the “Color Universal Design recommended color set”, a palette published in Japan by a committee that worked with color vision researchers and people with color vision deficiency. Each can still be called by the same color name as the original, so an internal convention such as “red is Store A” does not have to change.

When I entered these three colors into the palette check, the warning disappeared and was replaced by a green box saying “The selected colors are easy to tell apart…” (easy to distinguish for all three types).

Result of entering the red, green and blue of the CUD recommended color set in the palette check. A table of how each color looks and a green message saying they are easy to tell apart for every type are shown
Red, green and blue from the CUD recommended color set ver.4. They passed the protan, deutan and tritan checks.
Pair Protan Deutan Tritan Grayscale
Red #FF4B00 and green #03AF7A 38.3 60.2 127.9 10.7
Red #FF4B00 and blue #005AFF 135.6 157.9 117.1 10.3
Green #03AF7A and blue #005AFF 109.9 104.4 35.7 21.0

The red–green difference in deutan vision widened from 8.8 to 60.2, which is plenty as a measure for color vision differences. In grayscale, though, red–green is 10.7 and red–blue is 10.3: better, but not by much. The recommended set is designed to be distinguishable by differences in hue, so it does not take care of black-and-white printing, where hue information disappears.

So I added two cues that let readers tell the series apart without relying on color.

  1. Give each series its own line style and marker. Store A got a solid line with circles, Store B a dashed line with squares, and Store C a dotted line with triangles. In Excel or PowerPoint, choose solid or dashed under “Line” and the shape under “Marker” in the series’ Format Data Series pane.
  2. Drop the legend and write the series name directly at the right end of each line. Readers no longer need to find a legend color and match it to a line, so they can see at a glance which line is which, whether or not they can tell the colors apart and even in black and white.

Here is the result of loading the fixed chart again with “Choose image”.

Result of loading the fixed chart. Thanks to solid, dashed and dotted lines, circle, square and triangle markers, and store names at the right end of each line, the three lines can be distinguished even in the deutan and grayscale panels
The chart after fixing. In deutan and in grayscale, the series can be followed by line style and by the store names at the line ends.

In the deutan panel the Store A and Store B lines still look close in color, but they are distinguished by solid versus dashed lines and circles versus squares, and the text at the end of each line says what it is. The grayscale panel works the same way. Color differences remain as one way to make things easier to distinguish, but color no longer carries the meaning on its own.

What to keep in mind when using the tool’s verdict

Finally, a few points to keep in mind when reading the results.

  • No warning does not guarantee that everyone can tell the colors apart. The threshold (ΔE* 12) is a mechanical guide and does not take into account line thickness, the area of each color, or whether colors sit next to each other. Thin lines and small text are harder to distinguish even with the same color difference.
  • Check grayscale with your own eyes. As mentioned above, the warning box does not judge grayscale. Look at the “Grayscale” column of the table and the grayscale panel of the image.
  • A simulation is not a diagnosis. What you see is a view based on a standard model; actual vision varies from person to person and also changes with screen settings. It cannot be used to test your own or a family member’s color vision. If you are concerned, get tested by an eye doctor.

Whether a text and background combination is easy to read depends on the “contrast ratio” of their lightness, separately from color vision. When you choose colors for headings and button text, also check with the Contrast Ratio Checker that they meet the WCAG criteria. How to convert color codes to RGB or HSL and adjust their lightness is covered in “Convert RGB, HEX, and HSL to adjust colors in CSS”.

References

  • G. M. Machado, M. M. Oliveira, L. A. F. Fernandes, “A Physiologically-based Model for Simulation of Color Vision Deficiency”, IEEE Transactions on Visualization and Computer Graphics, 2009 (conversion matrices for protan, deutan and tritan)
  • ITU-R BT.709 (luminance coefficients used for the grayscale conversion)
  • Japanese Ophthalmological Society materials on color vision (prevalence of congenital color vision deficiency by sex in Japan)
  • US National Eye Institute, “Color Blindness” (prevalence among men of Northern European ancestry)
  • Color Universal Design Recommended Color Set Committee, “Color Universal Design recommended color set ver.4” (2018; the RGB accent colors for screens were used)
  • The color differences in this article were calculated by loading the tool’s calculation code (/js/color-vision-core.js) in Node.js and running the same functions (2026-11-30)

Frequently asked questions

How do red and green lines in a chart look to people with color vision deficiency?

With the red (#e23b3b) and green (#2e9e4f) used in this article, converting to deutan (type 2) vision turns both into browns, and the color difference ΔE* shrinks from 112.5 to 8.8. In protan (type 1) vision it is 33.5, so some lightness difference remains. If the lines cross, or if readers must match series by legend color alone, they can no longer tell which line is which.

If I switch to a color-universal-design palette, is black-and-white printing also fine?

Not necessarily. Switching to the red, green and blue of the Color Universal Design recommended color set ver.4 passed the protan, deutan and tritan checks, but in grayscale the color difference was only 10.7 between red and green and 10.3 between red and blue. Combining colors with line styles (solid, dashed, dotted), marker shapes and series names written at the end of each line lets readers tell the series apart even without color.

Can I use a color blindness simulator to test my own color vision?

No. The tool shows, using a standard model, how slides and charts look with protan, deutan or tritan dichromacy and in black-and-white print. It is a guide, not a medical test. Color vision tests are done by an eye doctor.