You can use the Color Text macro to change the colour of a block of text. You specify the colours either 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 the Confluence page or blog post that you want to edit, then click the Edit button.
  2. Click the Macro Browser icon on the toolbar. The macro browser window will open.
  3. Scroll through the list of macros to find the one you want. Alternatively, start typing the macro name into the search box at the top right of the macro browser. Macros with a matching name will appear in the main pane.
  4. Click the desired macro.
  5. Set the macro parameters to your requirements. If desired, you can preview these changes by clicking Refresh.
  6. Click Insert to add the macro onto the page.

(tick) You can also insert macros using autocomplete. For more information, see Using Autocomplete in the Rich Text Editor.

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

Usage with the Wiki Markup Editor

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

パラメーター

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 (:).

パラメーター

必須

既定

説明

Color Name/Hexadecimal Code
(color)

はい

なし

Colour of text. You can use names for common colours or use the hexadecimal code for a more specific colour.

必要な入力項目

表示結果

{color:red}red{color}

{color:green}green{color}

{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.

  • ラベルなし