Hex Color Codes Chart
Search the hex color codes chart: the 16 basic named colors, popular colors, and gray shades from black to white, each with its HEX, RGB, and HSL code.
What is the hex color codes chart?
The chart is a searchable reference table: every row is one named color with its HEX, RGB, and HSL codes. Find the color by name or by HEX code, click the HEX code to copy it, and paste it into CSS, Figma, or Canva. The chart is a lookup tool, not a picker — it answers "what is the HEX code for tomato" in one search.
The chart has 30 rows: the 16 basic named colors, 6 popular colors, and 8 gray shades. That is enough to cover the colors people actually search for, without the noise of a 148-color list that buries the common ones. The full 148 CSS named colors are a separate reference the site can add later.
Try the search — "tomato" finds a color that is not a chart row
Tomato (search result, not a chart row)
#FF6347 — rgb(255, 99, 71) — hsl(9, 100%, 64%)
Rebeccapurple (search result, not a chart row)
#663399 — rgb(102, 51, 153) — hsl(270, 50%, 40%)
Type "tomato" or "#FF6347" in the chart's search box above to find it, or type "rebeccapurple" for #663399.
The 16 basic named colors
The 16 basic named colors are the original VGA palette: black, white, red, lime, blue, yellow, cyan, magenta, silver, gray, maroon, olive, green, purple, teal, and navy. Every one of them has a fixed HEX code in CSS, so the same name always means the same color in every browser. The table below is the whole set — learn these 16 and you can read most color code references.
| Name | HEX | RGB |
|---|---|---|
| Black | #000000 | rgb(0, 0, 0) |
| White | #FFFFFF | rgb(255, 255, 255) |
| Red | #FF0000 | rgb(255, 0, 0) |
| Lime | #00FF00 | rgb(0, 255, 0) |
| Blue | #0000FF | rgb(0, 0, 255) |
| Yellow | #FFFF00 | rgb(255, 255, 0) |
| Cyan | #00FFFF | rgb(0, 255, 255) |
| Magenta | #FF00FF | rgb(255, 0, 255) |
| Silver | #C0C0C0 | rgb(192, 192, 192) |
| Gray | #808080 | rgb(128, 128, 128) |
| Maroon | #800000 | rgb(128, 0, 0) |
| Olive | #808000 | rgb(128, 128, 0) |
| Green | #008000 | rgb(0, 128, 0) |
| Purple | #800080 | rgb(128, 0, 128) |
| Teal | #008080 | rgb(0, 128, 128) |
| Navy | #000080 | rgb(0, 0, 128) |
The 16 basic colors as swatches — click one to copy its HEX code
Green vs lime and aqua vs cyan are grouped so you can compare them directly. Click a swatch to copy its code.
Three surprises in the basic colors
Green is #008000, not #00FF00 — the bright green is called lime. This is the most common surprise in the chart: people expect "green" to be the brightest green, but CSS green is a darker, calmer green at rgb(0, 128, 0), and the bright one at rgb(0, 255, 0) is lime. If your green looks dull, you probably wanted lime.
The other two surprises are pairs of names for the same color. Aqua is the same color as cyan, #00FFFF, and fuchsia is the same color as magenta, #FF00FF. Both names work in CSS and both give the identical HEX code, so use whichever name your team recognizes.
Surprise pairs, side by side
#008000vsLime
#00FF00
#00FFFF=Cyan
#00FFFF
#FF00FF=Magenta
#FF00FF
Popular colors people search for
The popular rows are the colors people search for by name: orange, pink, gold, brown, coral, and skyblue. These 6 sit outside the basic 16 but appear in designs constantly, so the chart lists them with the same HEX, RGB, and HSL codes as the basic rows. Each one is a standard CSS named color with a fixed HEX code.
| Name | HEX | RGB |
|---|---|---|
| Orange | #FFA500 | rgb(255, 165, 0) |
| Pink | #FFC0CB | rgb(255, 192, 203) |
| Gold | #FFD700 | rgb(255, 215, 0) |
| Brown | #A52A2A | rgb(165, 42, 42) |
| Coral | #FF7F50 | rgb(255, 127, 80) |
| Skyblue | #87CEEB | rgb(135, 206, 235) |
Two more popular colors are covered on their own tool pages and in the chart's search: tomato #FF6347, a warm red-orange, and rebeccapurple #663399, a medium purple named for Eric Meyer's daughter Rebecca. Both are standard CSS named colors.
The 6 popular colors — click one to copy its HEX code
Tomato #FF6347 and rebeccapurple #663399 are searchable in the chart above, not rows in it.
Gray shades from black to white
The gray rows run from black #000000 to white #FFFFFF in even steps, with no hue at all. A gray has equal red, green, and blue values, so its HEX code repeats the same pair three times — #333333 is rgb(51, 51, 51) and #CCCCCC is rgb(204, 204, 204). That pattern makes grays easy to read and easy to remember.
| Name | HEX | RGB |
|---|---|---|
| Black | #000000 | rgb(0, 0, 0) |
| Dark gray | #333333 | rgb(51, 51, 51) |
| Medium-dark gray | #666666 | rgb(102, 102, 102) |
| Gray | #808080 | rgb(128, 128, 128) |
| Medium gray | #999999 | rgb(153, 153, 153) |
| Light gray | #CCCCCC | rgb(204, 204, 204) |
| Very light gray | #EEEEEE | rgb(238, 238, 238) |
| White | #FFFFFF | rgb(255, 255, 255) |
Use grays for text, borders, and backgrounds: dark gray text on a white page is softer than pure black, and a light gray border divides sections without shouting. The chart's 8 gray steps cover the range most designs need.
Gray ramp — black to white in 8 steps
Every gray repeats the same hex pair three times, because red, green, and blue are equal.
How to use a HEX code from the chart
Click the HEX code to copy it, then paste it where the color belongs. In CSS, paste it as a value such as color: #FF6347; or background-color: #663399;. In Figma or Canva, paste it into the color field. In HTML, use it in a style attribute the same way. The copied code always includes the # sign.
If the exact color you need is not in the chart, use the color picker or the random color generator to find it, then copy its code from there. The chart is a reference for named colors; the picker tools cover every other color in the 16,777,216-color range.
Copy-and-paste demo — click a HEX code in the chart above
Last copied: nothing yet — try tomato #FF6347
This text wears the copied color.
Click any HEX code in the chart and this sample repaints in that color, so you can see it in use before you paste it.
All color tools
21 tools, one topic — see About Hex Color Code Picker for who built this site.
- Color Picker from ImageUpload an image, click a pixel, and read its HEX code.
- Screen EyedropperSample any pixel on your screen.
- RGB to HEX ConverterTurn three RGB numbers into one HEX code.
- HEX to RGB ConverterTurn a HEX code into three RGB numbers.
- HEX to HSL ConverterTurn a HEX code into hue, saturation, and lightness.
- HSL to HEX ConverterTurn HSL values back into a HEX code.
- HEX to HSV ConverterTurn a HEX code into hue, saturation, and value.
- HEX to CMYK ConverterTurn a HEX code into approximate print values.
- RGB to HSL ConverterTurn RGB numbers into hue, saturation, and lightness.
- HEX to OKLCH ConverterTurn a HEX code into the modern OKLCH format.
- Color ConverterSee one color in every format at once.
- HEX to RGBA ConverterTurn a HEX code into RGB with transparency.
- Color Name to HEXLook up any of the 148 CSS named colors.
- Color Palette GeneratorBuild a five-color palette from one color.
- Shades GeneratorBuild 10 tints and 10 shades from one color.
- Gradient GeneratorBuild a linear or radial gradient and copy the CSS.
- Contrast CheckerCheck any text and background pair for AA and AAA.
- Color MixerMix two colors and see the result.
- Random Color GeneratorPick a random color from all 16,777,216 HEX colors.
- Color Blindness SimulatorSee your colors as color-blind users see them.
- Color ChartThe 148 named colors with HEX, RGB, and HSL.
No tool matches your search.
Frequently asked questions
Green is #008000, which is rgb(0, 128, 0). The bright green most people picture is lime, #00FF00. CSS green is darker than lime — if your green looks dull, you probably wanted lime #00FF00 instead.
Yes — aqua and cyan are both #00FFFF. They are two names for the same color, and both work in CSS. The same holds for fuchsia and magenta, which are both #FF00FF. Use whichever name your team recognizes.
Tomato is #FF6347, which is rgb(255, 99, 71). It is a warm red-orange and a standard CSS named color. Type "tomato" in the chart's search box to find it, or click its swatch to copy the code.
Rebeccapurple is #663399, a medium purple named for Eric Meyer's daughter Rebecca. It is a standard CSS named color. It is the only CSS color named for a person, which is why it appears in so many color lists.
The chart has 30 rows: 16 basic named colors, 6 popular colors, and 8 gray shades. Tomato #FF6347 and rebeccapurple #663399 are also searchable. Every HEX code in the chart was verified before it was listed, and the chart can be extended later with verified rows only.
A gray repeats the same hex pair three times, because red, green, and blue are equal. #333333 is rgb(51, 51, 51), #999999 is rgb(153, 153, 153), and #CCCCCC is rgb(204, 204, 204). Black is #000000 and white is #FFFFFF — the two ends of the gray ramp.