HTML Color Codes & Color Names
A searchable reference of every standard HTML/CSS named color with its HEX and RGB value. Click any code to copy it.
| Swatch | Name | HEX | RGB | HSL | Readable text |
|---|---|---|---|---|---|
| Aa | AliceBlue | Black · 19.57:1 | |||
| Aa | AntiqueWhite | Black · 17.92:1 | |||
| Aa | Aqua | Black · 16.74:1 | |||
| Aa | Aquamarine | Black · 17.15:1 | |||
| Aa | Azure | Black · 20.45:1 | |||
| Aa | Beige | Black · 18.97:1 | |||
| Aa | Bisque | Black · 17.14:1 | |||
| Aa | Black | White · 21:1 | |||
| Aa | BlanchedAlmond | Black · 18.01:1 | |||
| Aa | Blue | White · 8.59:1 | |||
| Aa | BlueViolet | White · 5.95:1 | |||
| Aa | Brown | White · 7.08:1 | |||
| Aa | BurlyWood | Black · 11.31:1 | |||
| Aa | CadetBlue | Black · 6.88:1 | |||
| Aa | Chartreuse | Black · 16.2:1 | |||
| Aa | Chocolate | Black · 5.77:1 | |||
| Aa | Coral | Black · 8.4:1 | |||
| Aa | CornflowerBlue | Black · 7.06:1 | |||
| Aa | Cornsilk | Black · 19.71:1 | |||
| Aa | Crimson | White · 4.98:1 | |||
| Aa | Cyan | Black · 16.74:1 | |||
| Aa | DarkBlue | White · 15.29:1 | |||
| Aa | DarkCyan | Black · 5.06:1 | |||
| Aa | DarkGoldenRod | Black · 6.45:1 | |||
| Aa | DarkGray | Black · 8.93:1 | |||
| Aa | DarkGreen | White · 7.43:1 | |||
| Aa | DarkKhaki | Black · 10.14:1 | |||
| Aa | DarkMagenta | White · 8.49:1 | |||
| Aa | DarkOliveGreen | White · 5.94:1 | |||
| Aa | DarkOrange | Black · 9:1 | |||
| Aa | DarkOrchid | White · 5.7:1 | |||
| Aa | DarkRed | White · 10.01:1 | |||
| Aa | DarkSalmon | Black · 9.1:1 | |||
| Aa | DarkSeaGreen | Black · 9.75:1 | |||
| Aa | DarkSlateBlue | White · 9.06:1 | |||
| Aa | DarkSlateGray | White · 8.92:1 | |||
| Aa | DarkTurquoise | Black · 10.74:1 | |||
| Aa | DarkViolet | White · 6.56:1 | |||
| Aa | DeepPink | Black · 5.77:1 | |||
| Aa | DeepSkyBlue | Black · 9.89:1 | |||
| Aa | DimGray | White · 5.48:1 | |||
| Aa | DodgerBlue | Black · 6.48:1 | |||
| Aa | FireBrick | White · 6.67:1 | |||
| Aa | FloralWhite | Black · 20.18:1 | |||
| Aa | ForestGreen | Black · 4.78:1 | |||
| Aa | Fuchsia | Black · 6.69:1 | |||
| Aa | Gainsboro | Black · 15.31:1 | |||
| Aa | GhostWhite | Black · 19.86:1 | |||
| Aa | Gold | Black · 14.97:1 | |||
| Aa | GoldenRod | Black · 9.38:1 | |||
| Aa | Gray | Black · 5.31:1 | |||
| Aa | Green | White · 5.13:1 | |||
| Aa | GreenYellow | Black · 17.12:1 | |||
| Aa | HoneyDew | Black · 20.26:1 | |||
| Aa | HotPink | Black · 7.93:1 | |||
| Aa | IndianRed | Black · 5.28:1 | |||
| Aa | Indigo | White · 12.95:1 | |||
| Aa | Ivory | Black · 20.81:1 | |||
| Aa | Khaki | Black · 16.4:1 | |||
| Aa | Lavender | Black · 17.06:1 | |||
| Aa | LavenderBlush | Black · 19.03:1 | |||
| Aa | LawnGreen | Black · 15.78:1 | |||
| Aa | LemonChiffon | Black · 19.8:1 | |||
| Aa | LightBlue | Black · 13.74:1 | |||
| Aa | LightCoral | Black · 8.1:1 | |||
| Aa | LightCyan | Black · 19.91:1 | |||
| Aa | LightGoldenRodYellow | Black · 19.66:1 | |||
| Aa | LightGray | Black · 14.02:1 | |||
| Aa | LightGreen | Black · 14.81:1 | |||
| Aa | LightPink | Black · 12.71:1 | |||
| Aa | LightSalmon | Black · 10.56:1 | |||
| Aa | LightSeaGreen | Black · 8.01:1 | |||
| Aa | LightSkyBlue | Black · 12.23:1 | |||
| Aa | LightSlateGray | Black · 5.76:1 | |||
| Aa | LightSteelBlue | Black · 11.79:1 | |||
| Aa | LightYellow | Black · 20.63:1 | |||
| Aa | Lime | Black · 15.3:1 | |||
| Aa | LimeGreen | Black · 9.91:1 | |||
| Aa | Linen | Black · 18.67:1 | |||
| Aa | Magenta | Black · 6.69:1 | |||
| Aa | Maroon | White · 10.94:1 | |||
| Aa | MediumAquaMarine | Black · 10.87:1 | |||
| Aa | MediumBlue | White · 11.16:1 | |||
| Aa | MediumOrchid | Black · 5.32:1 | |||
| Aa | MediumPurple | Black · 5.58:1 | |||
| Aa | MediumSeaGreen | Black · 7.87:1 | |||
| Aa | MediumSlateBlue | Black · 5.05:1 | |||
| Aa | MediumSpringGreen | Black · 15.14:1 | |||
| Aa | MediumTurquoise | Black · 11.26:1 | |||
| Aa | MediumVioletRed | White · 5.42:1 | |||
| Aa | MidnightBlue | White · 14.84:1 | |||
| Aa | MintCream | Black · 20.56:1 | |||
| Aa | MistyRose | Black · 17.43:1 | |||
| Aa | Moccasin | Black · 17.01:1 | |||
| Aa | NavajoWhite | Black · 16.3:1 | |||
| Aa | Navy | White · 16:1 | |||
| Aa | OldLace | Black · 19.38:1 | |||
| Aa | Olive | Black · 5:1 | |||
| Aa | OliveDrab | Black · 5.51:1 | |||
| Aa | Orange | Black · 10.63:1 | |||
| Aa | OrangeRed | Black · 6.1:1 | |||
| Aa | Orchid | Black · 7.26:1 | |||
| Aa | PaleGoldenRod | Black · 16.75:1 | |||
| Aa | PaleGreen | Black · 16.58:1 | |||
| Aa | PaleTurquoise | Black · 16.28:1 | |||
| Aa | PaleVioletRed | Black · 6.75:1 | |||
| Aa | PapayaWhip | Black · 18.55:1 | |||
| Aa | PeachPuff | Black · 15.98:1 | |||
| Aa | Peru | Black · 7.02:1 | |||
| Aa | Pink | Black · 13.65:1 | |||
| Aa | Plum | Black · 10.14:1 | |||
| Aa | PowderBlue | Black · 14.65:1 | |||
| Aa | Purple | White · 9.41:1 | |||
| Aa | RebeccaPurple | White · 8.4:1 | |||
| Aa | Red | Black · 5.25:1 | |||
| Aa | RosyBrown | Black · 7.46:1 | |||
| Aa | RoyalBlue | White · 4.84:1 | |||
| Aa | SaddleBrown | White · 7.09:1 | |||
| Aa | Salmon | Black · 8.39:1 | |||
| Aa | SandyBrown | Black · 10.32:1 | |||
| Aa | SeaGreen | Black · 4.94:1 | |||
| Aa | SeaShell | Black · 19.54:1 | |||
| Aa | Sienna | White · 5.61:1 | |||
| Aa | Silver | Black · 11.54:1 | |||
| Aa | SkyBlue | Black · 12.05:1 | |||
| Aa | SlateBlue | White · 5.3:1 | |||
| Aa | SlateGray | Black · 5.17:1 | |||
| Aa | Snow | Black · 20.3:1 | |||
| Aa | SpringGreen | Black · 15.61:1 | |||
| Aa | SteelBlue | Black · 5.11:1 | |||
| Aa | Tan | Black · 10.64:1 | |||
| Aa | Teal | White · 4.77:1 | |||
| Aa | Thistle | Black · 12.36:1 | |||
| Aa | Tomato | Black · 7.12:1 | |||
| Aa | Turquoise | Black · 12.79:1 | |||
| Aa | Violet | Black · 9.06:1 | |||
| Aa | Wheat | Black · 15.98:1 | |||
| Aa | White | Black · 21:1 | |||
| Aa | WhiteSmoke | Black · 19.26:1 | |||
| Aa | Yellow | Black · 19.55:1 | |||
| Aa | YellowGreen | Black · 11.15:1 |
Reds
Oranges
Yellows
Greens
Cyans
Blues
Purples
Pinks
Browns
Grays & Black
Whites & Neutrals
Click any code or swatch to copy it. “Readable text” shows whether black or white text has more contrast on that color (WCAG 2 ratio).
How to Use HTML Color Codes
You can use a color name, HEX code or RGB value anywhere CSS expects a color. All three lines below produce the same result:
Color Names vs HEX Codes
- Color names are easy to read and remember, but only 140 standard names exist.
- HEX codes can describe any of 16.7 million colors and are the most common format in design files.
- RGB is useful when you need to add transparency with
rgba().
Using the Filters and Color Chart
Use the color family buttons to narrow the list — for example, show only Blues or Whites & Neutrals. Switch to Color chart view to browse named colors as a visual grid sorted from light to dark. Family groupings are approximate and based on each color’s hue, saturation and name.
Readable Text on Named Colors
The Readable text column compares black and white text on each color using the WCAG 2 contrast formula and shows the higher ratio. A ratio of at least 4.5:1 is recommended for normal text. For any other combination, use the Color Contrast Checker.
Good to Know
- Color names are case-insensitive:
tomato,TomatoandTOMATOall work. GrayandGreyspellings are both valid for the grey family.Aqua/CyanandFuchsia/Magentaare identical colors with two names.RebeccaPurple(#663399) is the newest named color, added in CSS Color Level 4.
Tips
- Popular named colors have dedicated guides: navy and teal.
- Named colors are great for quick prototypes; switch to your brand’s HEX codes for production.
- Need a shade between two named colors? Load it in the Color Picker and adjust it.
Related Learning Guides
Frequently Asked Questions
What is the HSL value of a named color?
Each row shows the HSL equivalent (hue, saturation, lightness), calculated from the color’s RGB value and rounded to whole numbers.
How many HTML color names are there?
There are 140 standard color names supported by all modern browsers (plus spelling variants such as Grey/Gray).
Are HTML color names the same as CSS color names?
Yes. The same list of named colors works in HTML attributes and CSS.
Is it better to use names or HEX codes?
Use HEX codes for exact brand colors and consistency across tools. Names are fine for quick tests and simple projects.
Are color names case-sensitive?
No. Browsers accept color names in any letter case.
How do I copy a code?
Click any HEX or RGB button in the table and the value is copied to your clipboard.