HTML Color Codes

Complete list of 140 CSS named colors with HEX and RGB values.

About HTML Color Codes

HTML color codes are essential for web design and development. The 140 CSS named colors provide a convenient way to specify colors without memorizing hex codes. Each color can be represented in multiple formats: HEX (#RRGGBB), RGB (Red, Green, Blue values from 0-255), and HSL (Hue, Saturation, Lightness). This reference includes all standard CSS named colors with their hex and RGB values, along with a live color preview.

Related Tools

Frequently Asked Questions

What are HTML color codes?
HTML color codes are hexadecimal values that represent colors in web design. They consist of a # symbol followed by 6 characters (e.g., #FF0000 for red). Each pair of characters represents the Red, Green, and Blue (RGB) components.
How many named colors are there in CSS?
CSS defines 140 named colors (also called X11 colors) that can be used by name instead of hex codes. These range from common colors like "red" and "blue" to specific shades like "cornflowerblue" and "papayawhip".
What is the difference between HEX and RGB?
HEX uses hexadecimal notation (#RRGGBB) while RGB uses decimal values (rgb(R, G, B)). Both represent the same colors — HEX is more compact for CSS, while RGB is often more intuitive for calculations.