Check out the new Fall colors!

| categories: plotting | View Comments

Check out the new Fall colors!

Check out the new Fall colors!

John Kitchin


The standard colors

the standard colors available in plotting are not that pretty:

b     blue
g     green
r     red
c     cyan
m     magenta
y     yellow
k     black
w     white

yellow is particularly hard to see.

clear all; close all; clc;

x = linspace(0,1);
y = sin(x);


cyan is not that attractive


green is pretty attrocius.


Doing better with colors

A large list of colors can be found online. Matlab allows you to specify a color by the RGB (red green blue) values, for example, deep carrot orange is defined by the RGB tuple [ 0.9100 0.4100 0.1700], and it is easier to see than yellow.

You specify the color of the line like this.

plot(x,y,'color',[0.9100    0.4100    0.1700])

using cmu.colors

It is not that convenient to type in the RGB tuples, so we created the cmu.colors provides a function to get a lot of colors deep carrot orange is much easier to see than the default yellow. Note this feature is only available for +cmu.version >= 1.7.

c = @cmu.colors; % shortcut function handle
c('deep carrot orange') % an ok looking dark orange. this returns the RGB
ans =

    0.9100    0.4100    0.1700

Instead of

plot(x,y,'color',c('deep carrot orange'),'linewidth',3)

List of available colors


% categories: plotting
ans = 

    'air force blue'
    'alice blue'
    'alizarin crimson'
    'amber (sae/ece)'
    'american rose'
    'android green'
    'anti-flash white'
    'antique brass'
    'antique fuchsia'
    'antique white'
    'ao (english)'
    'apple green'
    'army green'
    'arylide yellow'
    'ash grey'
    'atomic tangerine'
    'azure mist/web'
    'baby blue'
    'baby blue eyes'
    'baby pink'
    'ball blue'
    'banana mania'
    'banana yellow'
    'battleship grey'
    'beau blue'
    'blanched almond'
    'bleu de france'
    'blizzard blue'
    'blue (munsell)'
    'blue (ncs)'
    'blue (pigment)'
    'blue (ryb)'
    'blue bell'
    'blue gray'
    'bondi blue'
    'boston university red'
    'brandeis blue'
    'brick red'
    'bright cerulean'
    'bright green'
    'bright lavender'
    'bright maroon'
    'bright pink'
    'bright turquoise'
    'bright ube'
    'brilliant lavender'
    'brilliant rose'
    'brink pink'
    'british racing green'
    'brown (traditional)'
    'brown (web)'
    'bubble gum'
    'bulgarian rose'
    'burnt orange'
    'burnt sienna'
    'burnt umber'
    'cadet blue'
    'cadet grey'
    'cadmium green'
    'cadmium orange'
    'cadmium red'
    'cadmium yellow'
    'café au lait'
    'café noir'
    'cal poly pomona green'
    'cambridge blue'
    'camouflage green'
    'canary yellow'
    'candy apple red'
    'candy pink'
    'caput mortuum'
    'caribbean green'
    'carmine pink'
    'carmine red'
    'carnation pink'
    'carolina blue'
    'carrot orange'
    'celeste (colour)'
    'celestial blue'
    'cerise pink'
    'cerulean blue'
    'cg blue'
    'cg red'
    'chartreuse (traditional)'
    'chartreuse (web)'
    'cherry blossom pink'
    'chocolate (traditional)'
    'chocolate (web)'
    'chrome yellow'
    'classic rose'
    'cocoa brown'
    'columbia blue'
    'cool black'
    'cool grey'
    'copper rose'
    'coral pink'
    'coral red'
    'cornell red'
    'cornflower blue'
    'cosmic latte'
    'cotton candy'
    'crimson glory'
    'cyan (process)'
    'dark blue'
    'dark brown'
    'dark byzantium'
    'dark candy apple red'
    'dark cerulean'
    'dark champagne'
    'dark chestnut'
    'dark coral'
    'dark cyan'
    'dark electric blue'
    'dark goldenrod'
    'dark gray'
    'dark green'
    'dark jungle green'
    'dark khaki'
    'dark lava'
    'dark lavender'
    'dark magenta'
    'dark midnight blue'
    'dark olive green'
    'dark orange'
    'dark orchid'
    'dark pastel blue'
    'dark pastel green'
    'dark pastel purple'
    'dark pastel red'
    'dark pink'
    'dark powder blue'
    'dark raspberry'
    'dark red'
    'dark salmon'
    'dark scarlet'
    'dark sea green'
    'dark sienna'
    'dark slate blue'
    'dark slate gray'
    'dark spring green'
    'dark tan'
    'dark tangerine'
    'dark taupe'
    'dark terra cotta'
    'dark turquoise'
    'dark violet'
    'dartmouth green'
    'davys grey'
    'debian red'
    'deep carmine'
    'deep carmine pink'
    'deep carrot orange'
    'deep cerise'
    'deep champagne'
    'deep chestnut'
    'deep coffee'
    'deep fuchsia'
    'deep jungle green'
    'deep lilac'
    'deep magenta'
    'deep peach'
    'deep pink'
    'deep saffron'
    'deep sky blue'
    'desert sand'
    'dim gray'
    'dodger blue'
    'dogwood rose'
    'dollar bill'
    'duke blue'
    'earth yellow'
    'egyptian blue'
    'electric blue'
    'electric crimson'
    'electric cyan'
    'electric green'
    'electric indigo'
    'electric lavender'
    'electric lime'
    'electric purple'
    'electric ultramarine'
    'electric violet'
    'electric yellow'
    'eton blue'
    'falu red'
    'fashion fuchsia'
    'fern green'
    'ferrari red'
    'field drab'
    'fire engine red'
    'flamingo pink'
    'floral white'
    'fluorescent orange'
    'fluorescent pink'
    'fluorescent yellow'
    'forest green (traditional)'
    'forest green (web)'
    'french beige'
    'french blue'
    'french lilac'
    'french rose'
    'fuchsia pink'
    'fuzzy wuzzy'
    'ghost white'
    'gold (metallic)'
    'gold (web) (golden)'
    'golden brown'
    'golden poppy'
    'golden yellow'
    'granny smith apple'
    'gray (html/css gray)'
    'gray (x11 gray)'
    'green (color wheel) (x11 green)'
    'green (html/css green)'
    'green (munsell)'
    'green (ncs)'
    'green (pigment)'
    'green (ryb)'
    'guppie green'
    'halaya ube'
    'han blue'
    'han purple'
    'hansa yellow'
    'harvard crimson'
    'harvest gold'
    'heart gold'
    'hollywood cerise'
    'hookers green'
    'hot magenta'
    'hot pink'
    'hunter green'
    'india green'
    'indian red'
    'indian yellow'
    'indigo (dye)'
    'indigo (web)'
    'international klein blue'
    'international orange'
    'islamic green'
    'jazzberry jam'
    'june bud'
    'jungle green'
    'kelly green'
    'khaki (html/css) (khaki)'
    'khaki (x11) (light khaki)'
    'ku crimson'
    'la salle green'
    'languid lavender'
    'lapis lazuli'
    'laser lemon'
    'laurel green'
    'lavender (floral)'
    'lavender (web)'
    'lavender blue'
    'lavender blush'
    'lavender gray'
    'lavender indigo'
    'lavender magenta'
    'lavender mist'
    'lavender pink'
    'lavender purple'
    'lavender rose'
    'lawn green'
    'lemon chiffon'
    'light apricot'
    'light blue'
    'light brown'
    'light carmine pink'
    'light coral'
    'light cornflower blue'
    'light crimson'
    'light cyan'
    'light fuchsia pink'
    'light goldenrod yellow'
    'light gray'
    'light green'
    'light khaki'
    'light mauve'
    'light pastel purple'
    'light pink'
    'light salmon'
    'light salmon pink'
    'light sea green'
    'light sky blue'
    'light slate gray'
    'light taupe'
    'light thulian pink'
    'light timberwolf'
    'light yellow'
    'lime (color wheel)'
    'lime (web) (x11 green)'
    'lime green'
    'lincoln green'
    'magenta (dye)'
    'magenta (process)'
    'magic mint'
    'majorelle blue'
    'mango tango'
    'maroon (html/css)'
    'maroon (x11)'
    'mauve taupe'
    'maya blue'
    'meat brown'
    'medium aquamarine'
    'medium blue'
    'medium candy apple red'
    'medium carmine'
    'medium champagne'
    'medium electric blue'
    'medium jungle green'
    'medium lavender magenta'
    'medium orchid'
    'medium persian blue'
    'medium purple'
    'medium red-violet'
    'medium sea green'
    'medium slate blue'
    'medium spring bud'
    'medium spring green'
    'medium taupe'
    'medium teal blue'
    'medium turquoise'
    'medium violet-red'
    'midnight blue'
    'midnight green (eagle green)'
    'mikado yellow'
    'mint cream'
    'mint green'
    'misty rose'
    'mode beige'
    'moonstone blue'
    'mordant red 19'
    'moss green'
    'mountain meadow'
    'mountbatten pink'
    'msu green'
    'nadeshiko pink'
    'napier green'
    'naples yellow'
    'navajo white'
    'navy blue'
    'neon carrot'
    'neon fuchsia'
    'neon green'
    'non-photo blue'
    'north texas green'
    'ocean boat blue'
    'office green'
    'old gold'
    'old lace'
    'old lavender'
    'old mauve'
    'old rose'
    'olive drab #7'
    'olive drab (web) (olive drab #3)'
    'opera mauve'
    'orange (color wheel)'
    'orange (ryb)'
    'orange (web color)'
    'orange peel'
    'otter brown'
    'ou crimson red'
    'outer space'
    'outrageous orange'
    'oxford blue'
    'pakistan green'
    'palatinate blue'
    'palatinate purple'
    'pale aqua'
    'pale blue'
    'pale brown'
    'pale carmine'
    'pale cerulean'
    'pale chestnut'
    'pale copper'
    'pale cornflower blue'
    'pale gold'
    'pale goldenrod'
    'pale green'
    'pale magenta'
    'pale pink'
    'pale plum'
    'pale red-violet'
    'pale robin egg blue'
    'pale silver'
    'pale spring bud'
    'pale taupe'
    'pale violet-red'
    'pansy purple'
    'papaya whip'
    'paris green'
    'pastel blue'
    'pastel brown'
    'pastel gray'
    'pastel green'
    'pastel magenta'
    'pastel orange'
    'pastel pink'
    'pastel purple'
    'pastel red'
    'pastel violet'
    'pastel yellow'
    'paynes grey'
    'peach puff'
    'pearl aqua'
    'persian blue'
    'persian green'
    'persian indigo'
    'persian orange'
    'persian pink'
    'persian plum'
    'persian red'
    'persian rose'
    'phthalo blue'
    'phthalo green'
    'piggy pink'
    'pine green'
    'pink pearl'
    'pink sherbet'
    'plum (traditional)'
    'plum (web)'
    'polar bear'
    'portland orange'
    'powder blue (web)'
    'princeton orange'
    'prussian blue'
    'psychedelic purple'
    'purple (html/css)'
    'purple (munsell)'
    'purple (x11)'
    'purple heart'
    'purple mountain majesty'
    'purple pizzazz'
    'purple taupe'
    'radical red'
    'raspberry glace'
    'raspberry pink'
    'raspberry rose'
    'raw umber'
    'razzle dazzle rose'
    'red (munsell)'
    'red (ncs)'
    'red (pigment)'
    'red (ryb)'
    'rich black'
    'rich brilliant lavender'
    'rich carmine'
    'rich electric blue'
    'rich lavender'
    'rich lilac'
    'rich maroon'
    'rifle green'
    'robin egg blue'
    'rose bonbon'
    'rose ebony'
    'rose gold'
    'rose madder'
    'rose pink'
    'rose quartz'
    'rose taupe'
    'rose vale'
    'rosso corsa'
    'rosy brown'
    'royal azure'
    'royal blue (traditional)'
    'royal blue (web)'
    'royal fuchsia'
    'royal purple'
    'ruddy brown'
    'ruddy pink'
    'sacramento state green'
    'saddle brown'
    'safety orange (blaze orange)'
    'salmon pink'
    'sand dune'
    'sandy brown'
    'sandy taupe'
    'sap green'
    'satin sheen gold'
    'school bus yellow'
    'screamin green'
    'sea green'
    'seal brown'
    'selective yellow'
    'shamrock green'
    'shocking pink'
    'sky blue'
    'sky magenta'
    'slate blue'
    'slate gray'
    'smalt (dark powder blue)'
    'smokey topaz'
    'smoky black'
    'spiro disco ball'
    'splashed white'
    'spring bud'
    'spring green'
    'st. patricks blue'
    'steel blue'
    'stil de grain yellow'
    'tangerine yellow'
    'taupe gray'
    'tea green'
    'tea rose (orange)'
    'tea rose (rose)'
    'teal blue'
    'teal green'
    'tenné (tawny)'
    'terra cotta'
    'thulian pink'
    'tickle me pink'
    'tiffany blue'
    'tigers eye'
    'titanium yellow'
    'tractor red'
    'trolley grey'
    'tropical rain forest'
    'true blue'
    'tufts blue'
    'turkish rose'
    'turquoise blue'
    'turquoise green'
    'tuscan red'
    'twilight lavender'
    'tyrian purple'
    'ua blue'
    'ua red'
    'ucla blue'
    'ucla gold'
    'ufo green'
    'ultra pink'
    'ultramarine blue'
    'united nations blue'
    'university of california gold'
    'unmellow yellow'
    'up forest green'
    'up maroon'
    'upsdell red'
    'usc cardinal'
    'usc gold'
    'utah crimson'
    'vegas gold'
    'venetian red'
    'violet (color wheel)'
    'violet (ryb)'
    'violet (web)'
    'vivid auburn'
    'vivid burgundy'
    'vivid cerise'
    'vivid tangerine'
    'vivid violet'
    'warm black'
    'white smoke'
    'wild blue yonder'
    'wild strawberry'
    'wild watermelon'
    'yale blue'
    'yellow (munsell)'
    'yellow (ncs)'
    'yellow (process)'
    'yellow (ryb)'
    'yellow orange'
    'zinnwaldite brown'

blog comments powered by Disqus