This page last changed on Oct 07, 2009 by jens@atlassian.com.

You can use the Color Text Macro to change the colour of a block of text. Specify the colours by name or by hexadecimal value. Coloured text appears just like the line below.

Orange coloured text renders like this.

See more information about web colours.

On this page:

Usage with the Macro Browser

To insert the color text macro into a page using the Macro Browser,

  1. Open your desired Confluence page or blog post, then click the 'Edit' button. The page or blog post opens in edit mode.
  2. Click the Macro Browser icon on the toolbar. The macro browser window opens in the middle of the screen in 'macro selection' mode.
  3. Scroll through the list of macros. Alternatively, start typing part of the name of your desired macro into the search box at the top right of the macro browser window. Macros with a matching name will appear in the main pane.
  4. Click on the desired macro to access its parameters and preview parameter changes ('preview mode').
  5. Set the macro parameters to your requirements. If desired, you can preview these changes by clicking 'Refresh'.
  6. Click 'Insert' to put the macro into the page.

You can also insert macros via autocomplete. For more information, see Using Autocomplete in the Rich Text Editor.


Once you've found the color text macro, click 'insert' to add it to your page.

Exact colour results may look different depending on the browser in use.

Usage with the Wiki Markup Editor

{color:mycolour} ... text ... {color}

Parameters

Parameters are options that you can include in Confluence macros to control the content or format of the macro output. The table below lists relevant parameters for this macro.

Parameter names are different in the macro browser and in wiki markup. Below we show the macro browser parameter names in bold text, and the equivalent wiki markup parameters in (bracketed) text. If we do not show any parameter name for the wiki markup, then you should leave out the parameter name and simply include the parameter value as the first parameter, immediately after the colon (:).

Parameter Required Default Description
Color Name/Hexadecimal Code
(color)
Yes None Colour of text. You can use names for common colours or use the hexadecimal code for a more specific colour.

Examples

What you need to type What you will get
{color:red}red{color} red
{color:green}green{color} green
{color:blue}blue{color} blue
{color:orange}orange{color} orange
{color:yellow}yellow{color} yellow
{color:purple}purple{color} purple
{color:purple}violet{color} violet
{color:#FF0000}#FF0000{color} #FF0000
{color:#00FF00}#00FF00{color} #00FF00
{color:#0000FF}#0000FF{color} #0000FF
Hexadecimal colour codes use a leading hash symbol (#) then two digits for the red, green and blue values respectively. For example, the brightest red colour is shown by the code FF0000, where the first two digits (FF) are the maximum value for red (255 in decimal notation), while the green and blue digit pairs both represent the absolute minimum values at 00. Similarly, the brightest green is shown by the code 00FF00, and the brighest blue is shown by the code 0000FF. Other codes are a combination of the three, leading to the full range of colour. More information.
Document generated by Confluence on Jul 09, 2010 01:08