Key:ref:colour_tx

From OpenStreetMap Wiki
Jump to navigation Jump to search
ref:colour_tx
Description
The colour of the text of references for highways and public transport routes. Show/edit corresponding data item.
Group: highways
Used on these elements
should not be used on nodesmay be used on waysshould not be used on areasmay be used on relations
Requires

ref:colour=*

Status: de factoPage for proposal

ref:colour_tx=* describes the color of the text of the reference for highways and public transport lines and networks.

Usage

The key ref:colour_tx=* is used to define the colour of the text displayed inside a reference shield. It is used in combination with ref:colour=* (which defines the background colour of the same shield).

The key ref:colour_tx=* is used to ensure the map accurately represents the official operator's branding. While many editors (like iD) automatically choose black or white text based on background contrast, this manual tag is necessary in several cases:

  • Corporate pairs: When a network is defined by two specific corporate colours that must always go together.
  • Official identity over legibility: When the operator uses a specific combination that differs from automated defaults.

While traditionally used in the road network of Spain, it is also used for public transit networks to ensure that brand-specific route labels are rendered to match corporate identity.

Values

Main article: Key:colour

Examples

Network ref:colour ref:colour_tx Combined Appearance
Autobuses de España (bus.es)
#0FDDC4
#003A47
VAC-017 Dark, cool, blue-green tone text on vibrant turquoise shield.
L24 Transporte Urbano Comarcal (Pamplona)
#fcd856
white
L24 White text on yellow shield. Note this this does not meet WCAG minimum contrast.