Browse or search
Filter by color family or type a name or HEX to find CSS named colors.
HTML Color Codes on CalculatorX—clear steps, local browser calculation, and no account required. Runs locally in your browser. Fast and free.
Loading tool…
Filter by color family or type a name or HEX to find CSS named colors.
Click a color to see its name, HEX, RGB, and HSL in the detail panel.
Copy the keyword, HEX, or rgb() string for styles and markup.
Core relationships used by this color tool.
Common picks with formula and result.
Named keyword
Extended name
Dark blue keyword
Inline style pair
Version 1.0.1 · Engine tested
Named color → fixed sRGB; HEX ↔ RGB channel pairs; HSL derived from RGBHex codes use six hexadecimal digits: each pair is one channel from 00 (off) to FF (full). White is #FFFFFF, black is #000000, and equal channels make grays (for example #808080).
For a single custom hue outside the named list, use the HTML color picker. For related accents, try the color wheel.
<p style="color: tomato;">Named color</p>
<p style="color: #FF6347;">Hex color</p>
<p style="color: rgb(255, 99, 71);">RGB color</p>
.banner {
background-color: navy;
color: #ffffff;
}
a {
color: dodgerblue;
}
| Name | HEX | RGB |
|---|---|---|
| black | #000000 | 0, 0, 0 |
| silver | #C0C0C0 | 192, 192, 192 |
| gray | #808080 | 128, 128, 128 |
| white | #FFFFFF | 255, 255, 255 |
| maroon | #800000 | 128, 0, 0 |
| red | #FF0000 | 255, 0, 0 |
| purple | #800080 | 128, 0, 128 |
| fuchsia | #FF00FF | 255, 0, 255 |
| green | #008000 | 0, 128, 0 |
| lime | #00FF00 | 0, 255, 0 |
| olive | #808000 | 128, 128, 0 |
| yellow | #FFFF00 | 255, 255, 0 |
| navy | #000080 | 0, 0, 128 |
| blue | #0000FF | 0, 0, 255 |
| teal | #008080 | 0, 128, 128 |
| aqua | #00FFFF | 0, 255, 255 |
Key distinctions behind the tool.
Identifiers for colors on the web: CSS color names, hex codes, rgb()/rgba(), and hsl()/hsla(). They work in HTML style attributes and in CSS.
CSS defines 148 named color keywords (including grey/gray aliases and rebeccapurple). The chart above lists all of them with HEX and RGB.
They encode the same channels. HEX uses two hex digits per channel (#RRGGBB); RGB uses decimals 0–255. Example: #FF0000 = rgb(255, 0, 0).
Use an inline style such as style="color: tomato" or style="background-color: #FF6347", or define rules in a stylesheet.
No. Modern displays support full 24-bit color. The 216-color web-safe palette is historical; prefer named colors or any hex you need.