SysTutorials

Linux Manual Pages › Section 5

gmtcolors(5)

gmtcolors – Explanation of color codes in GMT

Description

Colors can be specified in GMT as arguments to commands, generally as part of the -G or -W options to select polygon fill or outline pen. Colors are also used in color palette tables (CPT files) that help convert numerical values to colors.

GMT allows several ways to represent a color:

Colorname
Specify one of the named colors below. All names are case-insensitive.
R/G/B
Specify Red, Green, and Blue levels. Each value is separated by a slash and is in the range from 0 (dark) to 255 (light). This representation is used to color monitors.
#RRGGBB
Specify Red, Green, and Blue levels in the way that it is done in HTML. Use two characters for each color channel, ranging from 00 (dark) to FF (light). Upper and lower case are allowed.
Graylevel
For shades of gray, R = G = B, and only one number needs to be used. This representation is popular with black and white printers.
H-S-V
Specify Hue in the range 0 to 360 (degrees), S saturation between 0 (not saturated) and 1 (fully saturated), and value V between 0 (dark) and 1 (light). Number are separated by hyphens. This representation can be helpful when hue varies a lot.
C/M/Y/K
Specify Cyan, Magenta, Yellow, and blacBD(K). Each number is in the range from 0 (no paint) to 1 (maximum paint). This representation is used by most color printers.

List Of Colors

The following list contains the named colors that can be used in GMT and their equivalent color codes.


RGBName

255250250snow

248248255ghostwite

255250240floralwhite

255245238seashell

253245230oldlace

250240230linen

250235215antiquewhite

255239213papayawhip

255235205blanchedalmond

255228196bisque

255218185peachpuff

255222173navajowhite

255228181moccasin

255250205lemonchiffon

255248220cornsilk

255255240ivory

240255240honeydew

245255250mintcream

240255255azure

240248255aliceblue

230230250lavender

255240245lavenderblush

255228225mistyrose

100149237cornflowerblue

10690205slateblue

123104238mediumslateblue

132112255lightslateblue

135206235skyblue

135206250lightskyblue

119136153lightslategray

119136153lightslategrey

112128144slategray

112128144slategrey

176196222lightsteelblue

173216230lightblue

224255255lightcyan

176224230powderblue

175238238paleturquoise

102205170mediumaquamarine

127255212aquamarine

144238144lightgreen

143188143darkseagreen

152251152palegreen

1242520lawngreen

1272550chartreuse

17325547greenyellow

15420550yellowgreen

10714235olivedrab

189183107darkkhaki

240230140khaki

238232170palegoldenrod

238221130lightgoldenrod

255255224lightyellow

250250210lightgoldenrodyellow

2552550yellow

1281280darkyellow

2552150gold

21816532goldenrod

18413411darkgoldenrod

188143143rosybrown

2059292indianred

1396919saddlebrown

1608245sienna

20513363peru

222184135burlywood

245245220beige

245222179wheat

24416496sandybrown

210180140tan

21010530chocolate

1783434firebrick

23519085lightbrown

1654242brown

1206030darkbrown

233150122darksalmon

250128114salmon

255160122lightsalmon

255192128lightorange

2551650orange

2551400darkorange

25512780coral

240128128lightcoral

2559971tomato

255690orangered

25500red

255128128lightred

13900darkred

25520147deeppink

255105180hotpink

255192203pink

255182193lightpink

219112147palevioletred

1764896maroon

19921133mediumvioletred

20832144violetred

1390139darkmagenta

2550255magenta

255128255lightmagenta

238130238violet

218112214orchid

221160221plum

18685211mediumorchid

15350204darkorchid

1480211darkviolet

13843226blueviolet

16032240purple

147112219mediumpurple

216191216thistle

105105105dimgray

105105105dimgrey

169169169darkgray

169169169darkgrey

190190190gray

190190190grey

211211211lightgrey

211211211lightgray

220220220gainsboro

245245245whitesmoke

255255255white

255250250snow1

238233233snow2

205201201snow3

139137137snow4

255245238seashell1

238229222seashell2

205197191seashell3

139134130seashell4

255239219antiquewhite1

238223204antiquewhite2

205192176antiquewhite3

139131120antiquewhite4

255228196bisque1

238213183bisque2

205183158bisque3

139125107bisque4

255218185peachpuff1

238203173peachpuff2

205175149peachpuff3

139119101peachpuff4

255222173navajowhite1

238207161navajowhite2

205179139navajowhite3

13912194navajowhite4

255250205lemonchiffon1

238233191lemonchiffon2

205201165lemonchiffon3

139137112lemonchiffon4

255248220cornsilk1

238232205cornsilk2

205200177cornsilk3

139136120cornsilk4

255255240ivory1

238238224ivory2

205205193ivory3

139139131ivory4

240255240honeydew1

224238224honeydew2

193205193honeydew3

131139131honeydew4

255240245lavenderblush1

238224229lavenderblush2

205193197lavenderblush3

139131134lavenderblush4

255228225mistyrose1

238213210mistyrose2

205183181mistyrose3

139125123mistyrose4

240255255azure1

224238238azure2

193205205azure3

131139139azure4

131111255slateblue1

122103238slateblue2

10589205slateblue3

135206255skyblue1

126192238skyblue2

108166205skyblue3

176226255lightskyblue1

164211238lightskyblue2

141182205lightskyblue3

198226255slategray1

185211238slategray2

159182205slategray3

108123139slategray4

202225255lightsteelblue1

188210238lightsteelblue2

162181205lightsteelblue3

110123139lightsteelblue4

191239255lightblue1

178223238lightblue2

154192205lightblue3

104131139lightblue4

224255255lightcyan1

209238238lightcyan2

180205205lightcyan3

122139139lightcyan4

187255255paleturquoise1

174238238paleturquoise2

150205205paleturquoise3

102139139paleturquoise4

152245255cadetblue1

142229238cadetblue2

122197205cadetblue3

151255255darkslategray1

141238238darkslategray2

121205205darkslategray3

127255212aquamarine1

118238198aquamarine2

102205170aquamarine3

193255193darkseagreen1

180238180darkseagreen2

155205155darkseagreen3

105139105darkseagreen4

154255154palegreen1

144238144palegreen2

124205124palegreen3

1272550chartreuse1

1182380chartreuse2

1022050chartreuse3

19225562olivedrab1

17923858olivedrab2

15420550olivedrab3

10513934olivedrab4

202255112darkolivegreen1

188238104darkolivegreen2

16220590darkolivegreen3

11013961darkolivegreen4

255246143khaki1

238230133khaki2

205198115khaki3

13913478khaki4

255236139lightgoldenrod1

238220130lightgoldenrod2

205190112lightgoldenrod3

13912976lightgoldenrod4

255255224lightyellow1

238238209lightyellow2

205205180lightyellow3

139139122lightyellow4

2552550yellow1

2382380yellow2

2052050yellow3

1391390yellow4

2552150gold1

2382010gold2

2051730gold3

1391170gold4

25519337goldenrod1

23818034goldenrod2

20515529goldenrod3

13910520goldenrod4

25518515darkgoldenrod1

23817314darkgoldenrod2

20514912darkgoldenrod3

1391018darkgoldenrod4

255193193rosybrown1

238180180rosybrown2

205155155rosybrown3

139105105rosybrown4

255106106indianred1

2389999indianred2

2058585indianred3

1395858indianred4

25513071sienna1

23812166sienna2

20510457sienna3

1397138sienna4

255211155burlywood1

238197145burlywood2

205170125burlywood3

13911585burlywood4

255231186wheat1

238216174wheat2

205186150wheat3

139126102wheat4

25516579tan1

23815473tan2

20513363tan3

1399043tan4

25512736chocolate1

23811833chocolate2

20510229chocolate3

1396919chocolate4

2554848firebrick1

2384444firebrick2

2053838firebrick3

1392626firebrick4

2556464brown1

2385959brown2

2055151brown3

1393535brown4

255140105salmon1

23813098salmon2

20511284salmon3

1397657salmon4

255160122lightsalmon1

238149114lightsalmon2

20512998lightsalmon3

1398766lightsalmon4

2551650orange1

2381540orange2

2051330orange3

139900orange4

2551270darkorange1

2381180darkorange2

2051020darkorange3

139690darkorange4

25511486coral1

23810680coral2

2059169coral3

1396247coral4

2559971tomato1

2389266tomato2

2057957tomato3

1395438tomato4

255690orangered1

238640orangered2

205550orangered3

139370orangered4

25500red1

23800red2

20500red3

13900red4

25520147deeppink1

23818137deeppink2

20516118deeppink3

1391080deeppink4

255110180hotpink1

238106167hotpink2

20596144hotpink3

1395898hotpink4

255181197pink1

238169184pink2

205145158pink3

13999108pink4

255174185lightpink1

238162173lightpink2

205140149lightpink3

13995101lightpink4

255130171palevioletred1

238121159palevioletred2

205104137palevioletred3

1397193palevioletred4

25552179maroon1

23848167maroon2

20541144maroon3

1392898maroon4

25562150violetred1

23858140violetred2

20550120violetred3

1393482violetred4

2550255magenta1

2380238magenta2

2050205magenta3

1390139magenta4

255131250orchid1

238122233orchid2

205105201orchid3

13971137orchid4

255187255plum1

238174238plum2

205150205plum3

139102139plum4

224102255mediumorchid1

20995238mediumorchid2

18082205mediumorchid3

12255139mediumorchid4

19162255darkorchid1

17858238darkorchid2

15450205darkorchid3

10434139darkorchid4

15548255purple1

14544238purple2

12538205purple3

171130255mediumpurple1

159121238mediumpurple2

137104205mediumpurple3

255225255thistle1

238210238thistle2

205181205thistle3

139123139thistle4

102102102gray40

102102102grey40

105105105gray41

105105105grey41

107107107gray42

107107107grey42

110110110gray43

110110110grey43

112112112gray44

112112112grey44

115115115gray45

115115115grey45

117117117gray46

117117117grey46

120120120gray47

120120120grey47

122122122gray48

122122122grey48

125125125gray49

125125125grey49

127127127gray50

127127127grey50

130130130gray51

130130130grey51

133133133gray52

133133133grey52

135135135gray53

135135135grey53

138138138gray54

138138138grey54

140140140gray55

140140140grey55

143143143gray56

143143143grey56

145145145gray57

145145145grey57

148148148gray58

148148148grey58

150150150gray59

150150150grey59

153153153gray60

153153153grey60

156156156gray61

156156156grey61

158158158gray62

158158158grey62

161161161gray63

161161161grey63

163163163gray64

163163163grey64

166166166gray65

166166166grey65

168168168gray66

168168168grey66

171171171gray67

171171171grey67

173173173gray68

173173173grey68

176176176gray69

176176176grey69

179179179gray70

179179179grey70

181181181gray71

181181181grey71

184184184gray72

184184184grey72

186186186gray73

186186186grey73

189189189gray74

189189189grey74

191191191gray75

191191191grey75

194194194gray76

194194194grey76

196196196gray77

196196196grey77

199199199gray78

199199199grey78

201201201gray79

201201201grey79

204204204gray80

204204204grey80

207207207gray81

207207207grey81

209209209gray82

209209209grey82

212212212gray83

212212212grey83

214214214gray84

214214214grey84

217217217gray85

217217217grey85

219219219gray86

219219219grey86

222222222gray87

222222222grey87

224224224gray88

224224224grey88

227227227gray89

227227227grey89

229229229gray90

229229229grey90

232232232gray91

232232232grey91

235235235gray92

235235235grey92

237237237gray93

237237237grey93

240240240gray94

240240240grey94

242242242gray95

242242242grey95

245245245gray96

245245245grey96

247247247gray97

247247247grey97

250250250gray98

250250250grey98

252252252gray99

252252252grey99

255255255gray100

255255255grey100

Further Information

For more information on the use of color, read Appendix I of the GMT TECHNICAL REFERENCE AND COOKBOOK.

See Also

gmt.conf , gmtlogo , grdcontour , grdvector , grdview psbasemap , pscoast , pscontour, pshistogram , psimage , pslegend , psmask , psrose , pstext , pswiggle , psxy , psxyz

Copyright

2015, P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis, and F. Wobbe