\usepackage[dvipsnames]{xcolor}
1 Colours Palettes
Here are some colours that I often use in R plots or in LaTeX documents. For each color, I provide the hexadecimal value and the RGB values. For some palettes, I gave names to the colors, so I provide some definitions in R and in LaTeX.
For LaTeX, the following package needs to be loaded to define our own colors:
Cool stuff for colour picking: https://davidmathlogic.com/colorblind/
1.1 Colours that are ok for color blindness and for printers
1.1.1 Palette 1
#a6cee3
rgb(166, 206, 227)
#1f78b4
rgb(31, 120, 180)
#b2df8a
rgb(178, 223, 138)
1.1.2 Palette 2
#1b9e77
rgb(27, 158, 119)
#d95f02
rgb(217, 95, 2)
#7570b3
rgb(117, 112, 179)
1.1.3 Palette 3
#66c2a5
rgb(102, 194, 165)
#fc8d62
rgb(252, 141, 98)
#8da0cb
rgb(141, 160, 203)
1.2 Color blind friendly
There is a nice R package, {prismatic} that allows to visualize color vision deficiency.
<- c("D81B60", "1E88E5", "FFC107", "004D40")
cols ::check_color_blindness(paste0("#", cols)) prismatic
1.2.1 Palette 1
#D81B60
rgb(216, 27, 96)
#1E88E5
rgb(30, 136, 229)
#FFC107
rgb(255, 193, 7)
#004D40
rgb(0, 77, 64)
1.2.2 Palette 2 (Wong)
From Wong (2011).
#000000
rgb(0, 0, 0)
#E69F00
rgb(230, 159, 0)
#56B4E9
rgb(86, 180, 233)
#009E73
rgb(0, 158, 115)
#F0E442
rgb(240, 228, 66)
#0072B2
rgb(0, 114, 178)
#D55E00
rgb(213, 94, 0)
#CC79A7
rgb(204, 121, 167)
<- "#000000"
wongBlack <- "#E69F00"
wongGold <- "#56B4E9"
wongLightBlue <- "#009E73"
wongGreen <- "#F0E442"
wongYellow <- "#0072B2"
wongBlue <- "#D55E00"
wongOrange <- "#CC79A7" wongPurple
\definecolor{wongBlack}{RGB}{0,0,0}
\definecolor{wongGold}{RGB}{230, 159, 0}
\definecolor{wongLightBlue}{RGB}{86, 180, 233}
\definecolor{wongGreen}{RGB}{0, 158, 115}
\definecolor{wongYellow}{RGB}{240, 228, 66}
\definecolor{wongBlue}{RGB}{0, 114, 178}
\definecolor{wongOrange}{RGB}{213, 94, 0}
\definecolor{wongPurple}{RGB}{204, 121, 167}
1.2.3 Palette 3 (IBM)
(The grey is an addition…)
#648FFF
rgb(100, 143, 255)
#785EF0
rgb(120, 94, 240)
#DC267F
rgb(220, 38, 127)
#FE6100
rgb(254, 97, 0)
#FFB000
rgb(255, 176, 0)
#949698
rgb(148, 150, 152)
<- "#648FFF"
IBMBlue <- "#785EF0"
IBMPurple <- "#DC267F"
IBMMagenta <- "#FE6100"
IBMOrange <- "#FFB000"
IBMYellow <- "#949698" gris
\definecolor{IBMBlue}{HTML}{648FFF}
\definecolor{IBMPurple}{HTML}{785EF0}
\definecolor{IBMMagenta}{HTML}{DC267F}
\definecolor{IBMOrange}{HTML}{FE6100}
\definecolor{IBMYellow}{HTML}{FFB000}
\definecolor{gris}{HTML}{949698}
1.2.4 Palette 4
#332288
rgb(51, 34, 136)
#117733
rgb(17, 119, 51)
#44AA99
rgb(68, 170, 153)
#88CCEE
rgb(136, 204, 238)
#DDCC77
rgb(221, 204, 119)
#CC6677
rgb(204, 102, 119)
#AA4499
rgb(170, 68, 153)
#882255
rgb(136, 34, 85)
<- "#332288"
bleuTOL <- "#117733"
vertTOL <- "#44AA99"
vertClairTOL <- "#88CCEE"
bleuClairTOL <- "#DDCC77"
sableTOL <- "#CC6677"
parmeTOL <- "#AA4499"
magentaTOL <- "#882255" roseTOL
\definecolor{bleuTOL}{HTML}{332288}
\definecolor{vertTOL}{HTML}{117733}
\definecolor{vertClairTOL}{HTML}{44AA99}
\definecolor{bleuClairTOL}{HTML}{88CCEE}
\definecolor{sableTOL}{HTML}{DDCC77}
\definecolor{parmeTOL}{HTML}{CC6677}
\definecolor{magentaTOL}{HTML}{AA4499}
\definecolor{roseTOL}{HTML}{882255}
1.3 Aix-Marseille University colors
1.3.1 Orange
#FFA100
rgb(255, 161, 0)
#FB4F14
rgb(251, 79, 20)
#EBB700
rgb(235, 183, 0)
<- "#FFA100"
orangeAMUClair <- "#FB4F14"
orangeAMUFonce <- "#EBB700" jauneAMU
\definecolor{orangeAMUClair}{RGB}{255,161,20}
\definecolor{orangeAMUFonce}{RGB}{251,79,189}
\definecolor{jauneAMU}{RGB}{235,183,0}
1.3.2 Red
#CF2F44
rgb(207, 47, 68)
#96172E
rgb(150, 23, 46)
#AA2F2F
rgb(170, 47, 47)
<- "#CF2F44"
rougeAMUClair <- "#96172E"
rougeAMUMoyen <- "#AA2F2F" bordeauAMU
\definecolor{rougeAMUClair}{RGB}{207,47,68}
\definecolor{rougeAMUMoyen}{RGB}{150,23,46}
\definecolor{bordeauAMU}{RGB}{170,47,47}
1.3.3 Blue
#5482AB
rgb(84, 130, 171)
#005A8B
rgb(0, 90, 139)
#00B0CA
rgb(0, 176, 202)
<- "#5482AB"
bleuAMUMoyen <- "#005A8B"
bleuAMUFonce <- "#00B0CA" bleuAMUClair
\definecolor{bleuAMUMoyen}{RGB}{84,130,171}
\definecolor{bleuAMUFonce}{RGB}{0,90,139}
\definecolor{bleuAMUClair}{RGB}{0,176,202}
1.3.4 Green
#61C250
rgb(97, 194, 80)
#A5D867
rgb(165, 216, 103)
#00693C
rgb(0, 105, 60)
<- "#61C250"
vertAMUclair <- "#A5D867"
vertAMUPomme <- "#00693C" vertAMUFonce
\definecolor{vertAMUclair}{RGB}{97,194,80}
\definecolor{vertAMUPomme}{RGB}{165,216,103}
\definecolor{vertAMUFonce}{RGB}{0,105,60}