Color names and HEX codes

Type a color name or browse a family to get its HEX and RGB code. White is #FFFFFF, black is #000000, pure red is #FF0000.

Type a name ('sage', 'navy') or a code ('ffd700', 'rgb(255 215 0)'). A name opens its color page; a code opens the color picker with that color.

Colors

All 148 CSS color names and the site's own names, with a swatch, HEX and RGB. Filter by family, sort by name or by lightness, and tap any swatch to copy its code.

NameCopyHEXRGB
Blue#0000FF0, 0, 255
Pink#FFC0CB255, 192, 203
Green#0080000, 128, 0
Purple#800080128, 0, 128
Gray#808080128, 128, 128
Yellow#FFFF00255, 255, 0
Brown#A52A2A165, 42, 42
Gold#FFD700255, 215, 0
Red#FF0000255, 0, 0
White#FFFFFF255, 255, 255
Orange#FFA500255, 165, 0
Black#0000000, 0, 0
Teal#0080800, 128, 128
Navy blue#0000800, 0, 128
Maroon#800000128, 0, 0
Sage green#9CAF88156, 175, 136

16 of 184 colours

A simple chart of five skin tones for drawings, avatars and emoji-style art. Real skin has many more tones; use the image picker on a photo to get an exact one.

Printables

How color codes work (HEX, RGB, HSL)

A screen makes every color from red, green and blue light. A HEX code writes those three amounts as pairs of hexadecimal digits from 00 to FF. In #FFD700 (gold), FF is the red, D7 the green and 00 the blue. So #FFFFFF is all three at full strength, which is white, and #000000 is none, which is black. The hash sign is part of the code in CSS and most design tools.

RGB writes the same amounts as numbers from 0 to 255: gold is rgb(255, 215, 0). HSL describes a color the way people talk about it: hue (the angle on the color wheel, 0-360°), saturation (how strong, 0-100%) and lightness (how light, 0-100%). Gold in HSL is hsl(51°, 100%, 50%). HSL is handy when you want a lighter, darker or duller version of the same color: keep the hue and change only the other two numbers.

CMYK is the ink model for printing (cyan, magenta, yellow, black). The CMYK values on this site are a simple conversion; a print shop may give slightly different numbers for its paper and inks. OKLCH is a newer CSS format that keeps lightness even across hues, which makes smoother palettes.

Web-safe and CSS color names

CSS has 148 named colors, from "aliceblue" to "yellowgreen". You can write color: teal instead of #008080 and every browser shows the same color. Some names are surprising: CSS "darkgray" (#A9A9A9) is lighter than "gray" (#808080), and "lime" is the pure #00FF00, while the lime green most people mean is "limegreen" (#32CD32).

The old "web-safe" list of 216 colors comes from the 1990s, when many screens showed only 256 colors. Every value in it uses the digits 00, 33, 66, 99, CC and FF, such as #336699. Today's screens show millions of colors, so you can use any code you like.

Odd and popular color names

Paint and fashion brands invent names all the time, but the names people search most are the classics: navy, teal, sage, burgundy, coral, lavender and gold. Each of them has its own page here with the HEX and RGB code, shades and colors that go with it. For a color you only have in a photo, use the image color picker to get its code.

Questions and answers

What is a hex color code?

A six-digit code such as #FFD700 that tells a screen how much red, green and blue to show. It is used in CSS, Figma, Canva and most design apps.

What color is #FFFFFF?

White: full red, green and blue light. #000000 is black.

How do I find the hex code of a color?

Search its name in the finder above, or open the color picker and pick it. For a color in a photo, use the image color picker.

How many color names are there in HTML and CSS?

148 named colors, such as navy, teal and gold. Any other color can be written as a HEX, RGB or HSL code.

What is a skin tone color chart?

A row of skin colors with their codes, such as #FFDBAC (light) to #8D5524 (deep), used for drawings and avatars.