From OpenStreetMap Wiki
(Redirected from Key:color)
Jump to: navigation, search
Available languages — Key:colour
Afrikaans Alemannisch aragonés asturianu azərbaycanca Bahasa Indonesia Bahasa Melayu Bân-lâm-gú Basa Jawa Baso Minangkabau bosanski brezhoneg català čeština dansk Deutsch eesti English español Esperanto estremeñu euskara français Frysk Gaeilge Gàidhlig galego Hausa hrvatski Igbo interlingua Interlingue isiXhosa isiZulu íslenska italiano Kiswahili Kreyòl ayisyen kréyòl gwadloupéyen Kurdî latviešu Lëtzebuergesch lietuvių magyar Malagasy Malti Nederlands Nedersaksies norsk bokmål norsk nynorsk occitan Oromoo oʻzbekcha/ўзбекча Plattdüütsch polski português português do Brasil română shqip slovenčina slovenščina Soomaaliga suomi svenska Tiếng Việt Türkçe Vahcuengh vèneto Wolof Yorùbá Zazaki српски / srpski беларуская български қазақша македонски монгол русский тоҷикӣ українська Ελληνικά Հայերեն ქართული नेपाली मराठी हिन्दी অসমীয়া বাংলা ਪੰਜਾਬੀ ગુજરાતી ଓଡ଼ିଆ தமிழ் తెలుగు ಕನ್ನಡ മലയാളം සිංහල ไทย မြန်မာဘာသာ ລາວ ភាសាខ្មែរ ⵜⴰⵎⴰⵣⵉⵖⵜ አማርኛ 한국어 日本語 中文(简体)‎ 吴语 粵語 中文(繁體)‎ ייִדיש עברית اردو العربية پښتو سنڌي فارسی ދިވެހިބަސް
Public-images-osm logo.svg colour
Prague metro plan 2008.svg
The colour associated with the object
Group: Annotation
Used on these elements
may be used on nodesmay be used on waysmay be used on areasmay be used on relations
Status: In use

Use colour=* to indicate the official colour associated with the object, for example the colour typically associated with a public transportation route. It is also often used to describe the real colour of an object like amenity=bench.

How to map

The value should be:

  • an RGB colour code (hex triplet), e.g. #FF0000 for red. This RGB code allows to describe about 16 millions distinct colors.
    A shorter RGB code with only 3 hex digits is also possible: it is equivalent to the 6-digit RGB codes where each individual digits (of the 3-digit code) are doubled (see examples in the table below). This short code (also standard in HTML and CSS) allows describing 4096 distinct colors.
  • a CSS colour name (mostly English colour name) in lower case (generic names should be preferred for non-specific colours, e.g. red instead of firebrick), and without any dash separator (when using composite colour names in the "extended color set" in the CSS specification).

The following 16 "basic" colour names (standardized in CSS for use in HTML and SVG) are recommended for best support in various map renderers.

Sample RGB hex Colour name   Sample RGB hex Colour name
  #000000 (or #000) black   #FFFFFF (or #FFF) white
  #808080 gray (or grey)   #C0C0C0 silver
  #800000 maroon   #FF0000 (or #F00) red
  #808000 olive   #FFFF00 (or #FF0) yellow
  #008000 green   #00FF00 (or #0F0) lime
  #008080 teal   #00FFFF (or #0FF) aqua
  #000080 navy   #0000FF (or #00F) blue
  #800080 purple   #FF00FF (or #F0F) fuchsia

A more extensive list of colour keywords has been specified by the CSS Color Module Level 3, which is supported by all major internet browsers. However, please keep in mind that these will not be recognized by all renderers. Hex triplets as described above are preferred in this case.

Deprecated tags

Note: There is also an alternate spelling color=* in lesser use, see a comparison in Taginfo. "Color" is the alternative used in the American English spelling, however the community usually prefers to use the British spelling for consistency. This alternative name is listed in Deprecated features.


See Also

  • building:colour=* - Colour of the building facade. See colour=* for possible values.
  • roof:colour=* - Colour of the building roof. See colour=* for possible values.
  • ref:colour=* - Colour of highway reference as seen on road signs.