Jul 09, 2026 — Digital Edition
George Ideas
Independent Journalism & Insight
Feature

Color-Blind Friendly Palette in R Studio

In the realm of data visualization, accessibility is a critical yet often overlooked aspect. One challenge faced by a significant portion of the population is color blindness, which can make interpreting color-coded data a daunting task. This is where a color-blind friendly palette in R Studio comes into play, ensuring that your visualizations are inclusive and accessible to all.

Colorblind safe palette
Colorblind safe palette

R Studio, a powerful integrated development environment (IDE) for R, offers a range of tools to create engaging and accessible visualizations. By understanding and implementing a color-blind friendly palette, you can enhance the user experience for a broader audience.

Guide to Color Blind Friendly Palettes | Yellowchalk Design
Guide to Color Blind Friendly Palettes | Yellowchalk Design

Understanding Color Blindness

Color blindness, or color vision deficiency, is a common condition affecting approximately 1 in 12 men and 1 in 200 women. It's crucial to understand the different types of color blindness to create effective color-blind friendly palettes.

the color chart for different shades of paint
the color chart for different shades of paint

There are three main types of color blindness: red-green, blue-yellow, and monochromacy. Each type affects how people perceive and distinguish colors, making it essential to choose colors that are distinguishable to the widest possible audience.

Red-Green Color Blindness

Colour Palette Ideas, Warm Colours, Spring Wedding Ideas, Color Scheme, Late Summer Wedding Colors, Enchanted Forest Color Palette, Vintage Color Palette, Wedding Colour Schemes, Summer Colour Palette
Colour Palette Ideas, Warm Colours, Spring Wedding Ideas, Color Scheme, Late Summer Wedding Colors, Enchanted Forest Color Palette, Vintage Color Palette, Wedding Colour Schemes, Summer Colour Palette

Red-green color blindness is the most common type, with green and red appearing similar or indistinguishable. To cater to this group, avoid using these colors together and opt for shades that are distinct in the blue and yellow spectrum.

For instance, using blue for one data series and yellow for another can help color-blind users differentiate between them, as these colors are typically distinguishable even to those with red-green color blindness.

Blue-Yellow Color Blindness

a woman standing in front of a group of people with different colored squares on them
a woman standing in front of a group of people with different colored squares on them

Blue-yellow color blindness, while less common, can make it difficult for users to distinguish between blue and yellow or between yellow and pink. To accommodate this group, consider using a wider range of hues and saturations, or opt for a monochromatic palette with varying shades and tints.

For example, using a dark blue, a medium blue, and a light blue can help users with blue-yellow color blindness differentiate between data series, as the shades are distinct even to those with this type of color blindness.

Creating a Color-Blind Friendly Palette in R Studio

the color scheme for different colored lines
the color scheme for different colored lines

R Studio offers several packages that can help you create color-blind friendly palettes. One such package is 'viridis', which provides a range of color palettes designed to be accessible to users with different types of color blindness.

The 'viridis' package uses a combination of hue, saturation, and brightness to create distinct and accessible colors. It offers several palettes, including 'viridis', 'inferno', 'magma', and 'plasma', each with a unique color gradient.

Colorblind Friendly Palette
Colorblind Friendly Palette
. ݁₊ ⊹ . ݁ ⟡ ݁ . ⊹ ₊ ݁.    #colorpallete #cute Hex Color Palette Green, Green Color Palette 2025, Green Eye Color Hex Code, Color Palette Forest Green, Hazel Eye Color Hex Code, Green Color Palette Nature, Color Palettes Green, Blue Eyes Color Palette, Green Tone Color Palette
. ݁₊ ⊹ . ݁ ⟡ ݁ . ⊹ ₊ ݁. #colorpallete #cute Hex Color Palette Green, Green Color Palette 2025, Green Eye Color Hex Code, Color Palette Forest Green, Hazel Eye Color Hex Code, Green Color Palette Nature, Color Palettes Green, Blue Eyes Color Palette, Green Tone Color Palette
color - blind safe palettes available from brain suda, normal vision protranopia and transopia
color - blind safe palettes available from brain suda, normal vision protranopia and transopia
four different colored labels with the words color palettes below them, including yellow green and blue
four different colored labels with the words color palettes below them, including yellow green and blue
four different font styles with flowers in the background
four different font styles with flowers in the background
a woman laying on top of a blue couch next to a wall with paint swatches
a woman laying on top of a blue couch next to a wall with paint swatches
Goal color palette
Goal color palette
5 Colour Pallet Covers "Quercitron" Aesthetic Themed 💛
5 Colour Pallet Covers "Quercitron" Aesthetic Themed 💛
color inspo✨️
color inspo✨️
the color scheme for different colors is shown in this graphic diagram, which shows how each color
the color scheme for different colors is shown in this graphic diagram, which shows how each color
5 Colour Pallet Covers "Figue" Aesthetic Themed 💜💛
5 Colour Pallet Covers "Figue" Aesthetic Themed 💜💛
an image of different colors in the same color scheme
an image of different colors in the same color scheme
Color Combinaisons: Palette for Graphic Design #193
Color Combinaisons: Palette for Graphic Design #193
the color palette is shown in different colors
the color palette is shown in different colors
🎨 some of my favorite colors to work with recently! do you have a fav?? ✨ part threeeeee <3  I’ve used some of these on client projects, passion projects or some Instagram posts and these have all been so pleasant to work with 🥹✨  save this post for some future color inspo & let me know which is your favourite 🤩💬  ✶ #graphicdesign #design #femalegraphicdesigners #freelancingfemales #inspiremyinstagram #colourpalette #creativegirlgang #colorpaletteinspiration #photos #photo #photography #under... Color Design Inspiration, Affinity Designer, Brand Color Palette, Color Palette Design, Colour Board, Color Inspo, Цветовые Сочетания, Color Stories, Color Pallets
🎨 some of my favorite colors to work with recently! do you have a fav?? ✨ part threeeeee <3 I’ve used some of these on client projects, passion projects or some Instagram posts and these have all been so pleasant to work with 🥹✨ save this post for some future color inspo & let me know which is your favourite 🤩💬 ✶ #graphicdesign #design #femalegraphicdesigners #freelancingfemales #inspiremyinstagram #colourpalette #creativegirlgang #colorpaletteinspiration #photos #photo #photography #under... Color Design Inspiration, Affinity Designer, Brand Color Palette, Color Palette Design, Colour Board, Color Inspo, Цветовые Сочетания, Color Stories, Color Pallets
four different color palettes with the names and numbers on them
four different color palettes with the names and numbers on them
four different colors are shown in the same color scheme, each with different font and numbers
four different colors are shown in the same color scheme, each with different font and numbers
5 Colour Pallet Covers "Metal Petal" Aesthetic Themed 💜💛
5 Colour Pallet Covers "Metal Petal" Aesthetic Themed 💜💛
Communicating data effectively with data visualization: Part 41 (Color Blind Friendly Palette) — Mark Bounthavong
Communicating data effectively with data visualization: Part 41 (Color Blind Friendly Palette) — Mark Bounthavong
four different color schemes with flowers in them
four different color schemes with flowers in them

Using the 'viridis' Package

To use the 'viridis' package in R Studio, first, install and load the package using the following commands:

install.packages("viridis")
library(viridis)

Once the package is loaded, you can use the 'viridis' function to create a color palette. For example, the following code creates a palette with 10 colors:

viridis(10)

The function returns a vector of colors that can be used in your visualizations. For instance, you can use the colors in a bar plot using the 'barplot' function:

barplot(rnorm(10), col = viridis(10))

Testing Your Palette

After creating your color-blind friendly palette, it's essential to test it to ensure it's accessible. The 'simulate_colorblindness' function from the 'simba' package can help you simulate different types of color blindness and test your palette.

First, install and load the 'simba' package:

install.packages("simba")
library(simba)

Then, use the 'simulate_colorblindness' function to test your palette. For example:

simulate_colorblindness(viridis(10), type = "protanopia")

This code simulates protanopia (a type of red-green color blindness) and displays your palette as it would appear to someone with this condition.

By understanding color blindness and implementing color-blind friendly palettes in R Studio, you can create visualizations that are accessible to a broader audience. This not only enhances the user experience but also promotes inclusivity and accessibility in data visualization.