Source: https://www.math.univ-paris13.fr/~japhet/Doc/Matlab/Doc-Matlab-Couleur.pdf