Explore a section
Switch between the basic 16 colors, hue family links, and HEX shorthand conversion.
Web colors for HTML and CSS: browse the basic 16 names, jump to hue family shade pages, and convert #RGB shorthand to #RRGGBB. No account needed.
Loading tool…
Follow these steps for a clear answer.
Switch between the basic 16 colors, hue family links, and HEX shorthand conversion.
Click a basic swatch or convert #RGB ↔ #RRGGBB, then copy HEX or use the CSS keyword.
Use family cards for deeper shade tables (red, blue, gray, and more).
Core relationships used by this color tool.
Common picks with formula and result.
3-digit expand
VGA keyword
Max channels
Theme token
Version 1.0.0
#RGB → #RRGGBB by doubling each digit; named colors → fixed sRGBWeb colors combine three ideas: hex triplets for exact channel values, named keywords for common presets, and family shade pages when you need related tones for UI systems.
Accessibility tip: do not rely on color alone. Check contrast between text and background (black vs white on a swatch is a quick start). For the full keyword chart, use HTML color codes; for channel math, use the RGB color chart.
:root {
--primary: #2563EB;
--secondary: #F97316;
--bg: #FFFFFF;
--text: #1F2937;
}
body {
background-color: var(--bg);
color: var(--text);
}
.btn-primary {
background-color: var(--primary);
color: #fff;
}
| Color | HEX | RGB | HSL |
|---|---|---|---|
| Red | #FF0000 | 255, 0, 0 | 0°, 100%, 50% |
| Lime (green) | #00FF00 | 0, 255, 0 | 120°, 100%, 50% |
| Blue | #0000FF | 0, 0, 255 | 240°, 100%, 50% |
| Yellow | #FFFF00 | 255, 255, 0 | 60°, 100%, 50% |
| Cyan / Aqua | #00FFFF | 0, 255, 255 | 180°, 100%, 50% |
| Magenta / Fuchsia | #FF00FF | 255, 0, 255 | 300°, 100%, 50% |
Key distinctions behind the tool.
Colors specified for HTML and CSS using hex codes, named keywords, or functions like rgb() and hsl(). They style text, backgrounds, borders, and other visual properties.
A six-digit hex value #RRGGBB giving red, green, and blue from 00 to FF. Shorthand #RGB expands each digit (for example #F0A becomes #FF00AA).
Modern browsers support all 16.7 million 24-bit RGB colors, plus about 148 CSS named colors. The old 216 “web-safe” palette is optional history, not a hard limit.
The original named set: black, silver, gray, white, maroon, red, purple, fuchsia, green, lime, olive, yellow, navy, blue, teal, and aqua.
Open a family page from the Families tab (for example Blue or Gray), or browse the full named list on HTML color codes.