Font color

Publish

Platform_KC
On Premises

Example: color: #6A6662; or color: blue;

Colors can be defined using the name of the color or as hexadecimal code representing the color.

Names for 16 recognized colors can be used to define the color value for a style, including black, white, blue, green, red. The 16 colors are based on the VGA palette. There are a number of other named colors, but as they are not always rendered as expected in different browsers numeric and alphanumeric codes can be used to represent by the amounts of red, green, and blue (RGB) making up the color.

Most often hexadecimal code (alphanumeric) is used to identify a color. The hexadecimal code always begins with a hash character (#) and uses a combination of numbers (0-9) and letters (A-F). The six characters used for the code are actually three pairs of values used to represent the amount of Red, Green and Blue in the color. The browser uses the three values to recreate the color.

Below is a quick reference table containing the 16 named colors and their RGB equivalent using hexadecimal code.

Name

Hexadecimal code

black

#000000

white

#FFFFFF

silver

#C0C0C0

gray

#808080

green

#008000

olive

#808000

lime

#00FF00

blue

#0000FF

teal

#008080

aqua

#00FFFF

navy

#000080

yellow

#FFFF00

red

#FF0000

fuchsia

#FF00FF

maroon

#800000

purple

#800080