HTML Color Codes

HTML color codes, Hex color codes, RGB and HSL values with our color picker, color chart

HEX: #FFFFFF
RGB: RGB(255, 255, 255)
HSL: HSL(0, 0%, 100%)

Color Picker

Find the color you need with our color picker. Get Hex color codes, RGB and HSL values quickly and easily.

What is a HTML color code?

A HTML color code is an identifier used to represent a color on the web and within other digital assets. Common color codes are in the forms of: a keyword name, a hexadecimal value, a RGB (red, green, blue) triplet, or a HSL (hue, saturation, lightness) triplet. Different values allow for 16,777,216 potential colors to be chosen.

For example, the color red can be identified using the following formats:

red (keyword name)
#ff0000 (hex)
(255, 0, 0) (RGB)
(0, 100%, 50%) (HSL)

Because there are so many colors to choose from, tools have been created to make the task of selection much simpler. A color picker allows a user to select a color by clicking on a visual range of color to pinpoint an exact code. A color chart provides a listing of common colors for quick selection.

To use a selected color code within your web page, you could place the following attribute within a given element to change its background color to red: style="background-color: #ff0000;"

HTML color codes are used within HTML and CSS to create web design color schemes. They are primarily used by web designers, graphic designers, computer programmers, and digital illustrators. Choosing the correct web colors can be exhausting, but it is a great skill to have, especially for marketing purposes.