Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

What are the default available color named text tags in Confluence?

Tini Good
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 3, 2018

The documentation references the Wikipedia page with 16 HTML color names.  The built-in Confluence text color picker GUI has 40 colors (8 columns by 5 rows).  When using the Panel macro, et al., I'd like my border and/or background color to match various of these 40 color options using their name, rather than having to keep track of the Hex code (I can memorize 40 names more easily). 

Initially I thought the full answer was that only these 16 HTML colors can be chosen by named text tag in Confluence macros, even though 40 text colors are offered through the GUI.  However, Darkgray works in the Panel macro and testing confirms that option differs from the color returned by color text tag Silver or Gray.  Using a colorpicker confirms the Confluence text color matches the hexcode for these three X11 named colors as well.

So some of the available names can be determined by colorpicker RGB or Hex code and referring to the X11 colors on the same Wiki page.  Others I have not been able to find.

The current documentation is incomplete for colors, does anyone have this list?

P.S.

As an interesting aside, while testing, I played around in JIRA, and it seems to support more named X11 colors than Confluence.  These text color tags were not rejected in JIRA, but they did not all work in Confluence.

{color:lightgray}text{color} {color:silver}text{color} {color:darkgray}text{color} {color:gray}text{color} {color:dimgray}text{color} {color:LightSlateGray}text{color} {color:SlateGray}text{color} {color:darkSlateGray}text{color} {color:black}text{color} {color:cornflowerblue}TEXT{color}

 

2 answers

1 accepted

0 votes
Answer accepted
Tini Good
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 3, 2018

OK, so the 40 text color tag options available via the GUI are the Excel color palette.

The named color list you can use in macros (such as Panel) appears to be the 140 named colors of CSS/HTML4.  It does not recognize all the X11 color names. 

These two overlap, but the Excel 40 is not a subset of the CSS 140. 

This took me a ridiculously long time to figure out.  Enjoy!

0 votes
Tini Good
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 3, 2018

Argh!  They are the Standard 40 Excel color palette! Perhaps because you need to be able to export to Word?

However, the color names for this palette on most of the websites don't all seem to work, particularly some of the two word color names. 

Soo close....

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events