Skip to content
Free tools Let's talk

Free tool

Color names and HTML color codes

All 148 CSS color names with their hex, RGB and HSL codes, plus 4,362 more named colors sorted by color family. Only the 148 are standard CSS keywords; the other 4,362 are descriptive names from the open color-names dataset by David Aerne (MIT license). Search by name or code and click any code to copy it. Have a hex code without a name? Paste it to find the nearest color names.

1Search or name a color

A word filters the lists below. A complete code shows its nearest color names.

Try

Color family

148 CSS color names and 4,362 more named colors

The 148 CSS color names

Every color keyword that HTML and CSS accept, with its exact value from the W3C specification. The 148 keywords name 139 different colors, because gray and grey are both allowed and aqua and fuchsia have the twins cyan and magenta. Click a keyword or a code to copy it.

ColorKeywordHEXRGBHSLWhite and black text
White text 2.59:1Black text 8.1:1AAA
White text 2.81:1Black text 7.46:1AAA
White text 3.97:1LargeBlack text 5.28:1AA
HTML 4 basic colorWhite text 3.99:1LargeBlack text 5.25:1AA
White text 6.67:1AABlack text 3.14:1Large
White text 7.08:1AAABlack text 2.96:1
White text 10.01:1AAABlack text 2.09:1
HTML 4 basic colorWhite text 10.94:1AAABlack text 1.91:1
White text 1.2:1Black text 17.43:1AAA
White text 2.5:1Black text 8.39:1AAA
White text 2.94:1Black text 7.12:1AAA
White text 4.98:1AABlack text 4.2:1Large
White text 1.53:1Black text 13.65:1AAA
White text 1.65:1Black text 12.71:1AAA
White text 2.3:1Black text 9.1:1AAA
White text 2.49:1Black text 8.4:1AAA
White text 3.44:1LargeBlack text 6.1:1AA
White text 1.98:1Black text 10.56:1AAA
White text 1.31:1Black text 15.98:1AAA
White text 2.03:1Black text 10.32:1AAA
White text 2.99:1Black text 7.02:1AAA
White text 1.22:1Black text 17.14:1AAA
White text 2.33:1Black text 9:1AAA
White text 1.17:1Black text 17.92:1AAA
White text 1.85:1Black text 11.31:1AAA
White text 1.97:1Black text 10.64:1AAA
White text 1.16:1Black text 18.01:1AAA
White text 1.13:1Black text 18.55:1AAA
White text 1.23:1Black text 17.01:1AAA
White text 1.31:1Black text 15.98:1AAA
White text 1.97:1Black text 10.63:1AAA
White text 2.23:1Black text 9.38:1AAA
White text 3.25:1LargeBlack text 6.45:1AA
White text 1.06:1Black text 19.71:1AAA
White text 1.4:1Black text 14.97:1AAA
White text 1.06:1Black text 19.8:1AAA
White text 1.28:1Black text 16.4:1AAA
White text 1.25:1Black text 16.75:1AAA
White text 2.06:1Black text 10.14:1AAA
White text 1.01:1Black text 20.63:1AAA
White text 1.1:1Black text 18.97:1AAA
White text 1.06:1Black text 19.66:1AAA
HTML 4 basic colorWhite text 1.07:1Black text 19.55:1AAA
HTML 4 basic colorWhite text 4.19:1LargeBlack text 5:1AA
White text 1.88:1Black text 11.15:1AAA
White text 3.8:1LargeBlack text 5.51:1AA
White text 5.94:1AABlack text 3.53:1Large
White text 1.22:1Black text 17.12:1AAA
White text 1.29:1Black text 16.2:1AAA
White text 1.33:1Black text 15.78:1AAA
White text 1.26:1Black text 16.58:1AAA
White text 1.41:1Black text 14.81:1AAA
White text 2.15:1Black text 9.75:1AAA
HTML 4 basic colorWhite text 1.37:1Black text 15.3:1AAA
White text 2.11:1Black text 9.91:1AAA
White text 4.38:1LargeBlack text 4.78:1AA
HTML 4 basic colorWhite text 5.13:1AABlack text 4.08:1Large
White text 7.43:1AAABlack text 2.82:1
White text 4.24:1LargeBlack text 4.94:1AA
White text 2.66:1Black text 7.87:1AAA
White text 1.34:1Black text 15.61:1AAA
White text 1.38:1Black text 15.14:1AAA
White text 1.22:1Black text 17.15:1AAA
White text 1.93:1Black text 10.87:1AAA
White text 1.64:1Black text 12.79:1AAA
White text 2.62:1Black text 8.01:1AAA
White text 1.86:1Black text 11.26:1AAA
White text 1.05:1Black text 19.91:1AAA
White text 1.28:1Black text 16.28:1AAA
same as cyanWhite text 1.25:1Black text 16.74:1AAA
same as aquaWhite text 1.25:1Black text 16.74:1AAA
White text 4.14:1LargeBlack text 5.06:1AA
same as darkslategreyWhite text 8.92:1AAABlack text 2.35:1
same as darkslategrayWhite text 8.92:1AAABlack text 2.35:1
HTML 4 basic colorWhite text 4.77:1AABlack text 4.39:1Large
White text 1.95:1Black text 10.74:1AAA
White text 3.05:1LargeBlack text 6.88:1AA
White text 1.43:1Black text 14.65:1AAA
White text 1.52:1Black text 13.74:1AAA
White text 2.12:1Black text 9.89:1AAA
White text 1.74:1Black text 12.05:1AAA
White text 1.71:1Black text 12.23:1AAA
White text 4.1:1LargeBlack text 5.11:1AA
White text 3.23:1LargeBlack text 6.48:1AA
same as lightslategreyWhite text 3.64:1LargeBlack text 5.76:1AA
same as lightslategrayWhite text 3.64:1LargeBlack text 5.76:1AA
same as slategreyWhite text 4.05:1LargeBlack text 5.17:1AA
same as slategrayWhite text 4.05:1LargeBlack text 5.17:1AA
White text 1.78:1Black text 11.79:1AAA
White text 2.97:1Black text 7.06:1AAA
White text 4.84:1AABlack text 4.33:1Large
HTML 4 basic colorWhite text 8.59:1AAABlack text 2.44:1
White text 11.16:1AAABlack text 1.88:1
White text 15.29:1AAABlack text 1.37:1
White text 14.84:1AAABlack text 1.41:1
White text 5.3:1AABlack text 3.95:1Large
White text 9.06:1AAABlack text 2.31:1
White text 4.15:1LargeBlack text 5.05:1AA
White text 3.76:1LargeBlack text 5.58:1AA
White text 8.4:1AAABlack text 2.49:1
White text 5.95:1AABlack text 3.52:1Large
White text 12.95:1AAABlack text 1.62:1
White text 5.7:1AABlack text 3.68:1Large
White text 6.56:1AABlack text 3.19:1Large
White text 3.94:1LargeBlack text 5.32:1AA
White text 1.69:1Black text 12.36:1AAA
White text 2.06:1Black text 10.14:1AAA
White text 2.31:1Black text 9.06:1AAA
same as magentaWhite text 3.13:1LargeBlack text 6.69:1AA
same as fuchsiaWhite text 3.13:1LargeBlack text 6.69:1AA
White text 8.49:1AAABlack text 2.47:1
HTML 4 basic colorWhite text 9.41:1AAABlack text 2.22:1
White text 2.88:1Black text 7.26:1AAA
White text 5.42:1AABlack text 3.87:1Large
White text 3.63:1LargeBlack text 5.77:1AA
White text 2.64:1Black text 7.93:1AAA
White text 3.11:1LargeBlack text 6.75:1AA
White text 5.61:1AABlack text 3.73:1Large
White text 3.63:1LargeBlack text 5.77:1AA
White text 7.09:1AAABlack text 2.95:1
White text 1.37:1Black text 15.31:1AAA
same as lightgreyWhite text 1.49:1Black text 14.02:1AAA
same as lightgrayWhite text 1.49:1Black text 14.02:1AAA
HTML 4 basic colorWhite text 1.81:1Black text 11.54:1AAA
same as darkgreyWhite text 2.35:1Black text 8.93:1AAA
same as darkgrayWhite text 2.35:1Black text 8.93:1AAA
same as greyWhite text 3.94:1LargeBlack text 5.31:1AA
same as grayWhite text 3.94:1LargeBlack text 5.31:1AA
same as dimgreyWhite text 5.48:1AABlack text 3.82:1Large
same as dimgrayWhite text 5.48:1AABlack text 3.82:1Large
HTML 4 basic colorWhite text 21:1AAABlack text 1:1
HTML 4 basic colorWhite text 1:1Black text 21:1AAA
White text 1.03:1Black text 20.3:1AAA
White text 1.09:1Black text 19.26:1AAA
White text 1.07:1Black text 19.54:1AAA
White text 1.12:1Black text 18.67:1AAA
White text 1.08:1Black text 19.38:1AAA
White text 1.04:1Black text 20.18:1AAA
White text 1:1Black text 20.81:1AAA
White text 1.03:1Black text 20.26:1AAA
White text 1.02:1Black text 20.56:1AAA
White text 1.02:1Black text 20.45:1AAA
White text 1.07:1Black text 19.57:1AAA
White text 1.05:1Black text 19.86:1AAA
White text 1.23:1Black text 17.06:1AAA
White text 1.1:1Black text 19.03:1AAA

4,362 more color names by family

Not CSS standard: descriptive names from the open color-names dataset by David Aerne (meodai), MIT license, with names like Abyssal, Eigengrau and Zucchini. Browsers do not know these names, so use the hex code in your CSS. Each family shows a sample first: open it to see every name, or search above.

Reds623 names

ColorNameHEXRGBHSLWhite and black text
Hard CandyWhite text 1.6:1Black text 13.07:1AAA
SalamiWhite text 10.77:1AAABlack text 1.94:1
Red Riding HoodWhite text 3.8:1LargeBlack text 5.51:1AA
TabascoWhite text 7.51:1AAABlack text 2.79:1
RadishicalWhite text 3.66:1LargeBlack text 5.73:1AA
RadishWhite text 6.89:1AABlack text 3.04:1Large
Scarlet SplendourWhite text 5.77:1AABlack text 3.63:1Large
Vampire HunterWhite text 13.69:1AAABlack text 1.53:1

Oranges693 names

ColorNameHEXRGBHSLWhite and black text
Fallen PetalsWhite text 1.27:1Black text 16.45:1AAA
Temptatious TangerineWhite text 2.64:1Black text 7.93:1AAA
Whiskey SourWhite text 2.62:1Black text 8:1AAA
PergamentWhite text 2.34:1Black text 8.96:1AAA
Golden TalismanWhite text 1.59:1Black text 13.19:1AAA
Sunbathed BeachWhite text 1.43:1Black text 14.68:1AAA
PopcornWhite text 1.47:1Black text 14.25:1AAA
Secret PassageWhite text 14.03:1AAABlack text 1.49:1

Yellows460 names

ColorNameHEXRGBHSLWhite and black text
Satin Cream WhiteWhite text 1.1:1Black text 18.95:1AAA
Citrus SplashWhite text 1.59:1Black text 13.14:1AAA
Cream and ButterWhite text 1.16:1Black text 17.98:1AAA
Delicate LemonWhite text 1.37:1Black text 15.24:1AAA
Casino LightsWhite text 1.14:1Black text 18.37:1AAA
Green OliveWhite text 3.52:1LargeBlack text 5.95:1AA
GiggleWhite text 1.16:1Black text 18.07:1AAA
Topiary GreenWhite text 4.99:1AABlack text 4.2:1Large

Greens505 names

ColorNameHEXRGBHSLWhite and black text
Cool as a CucumberWhite text 1.56:1Black text 13.43:1AAA
Sweet VenomWhite text 1.21:1Black text 17.3:1AAA
BotanicalWhite text 5.85:1AABlack text 3.58:1Large
Palm LeafWhite text 9.88:1AAABlack text 2.12:1
Alien AbductionWhite text 1.37:1Black text 15.32:1AAA
Ruins of CivilizationWhite text 1.41:1Black text 14.85:1AAA
Ficus ElasticaWhite text 7.62:1AAABlack text 2.75:1
IridescentWhite text 7.5:1AAABlack text 2.79:1

Teals and cyans254 names

ColorNameHEXRGBHSLWhite and black text
Ice CubeWhite text 1.42:1Black text 14.78:1AAA
PhilodendronWhite text 7.13:1AAABlack text 2.94:1
Ice TempleWhite text 1.26:1Black text 16.56:1AAA
Stormy BayWhite text 2.3:1Black text 9.12:1AAA
ParadisoWhite text 4.47:1LargeBlack text 4.69:1AA
Elite TealWhite text 13.49:1AAABlack text 1.55:1
Pacific BlueWhite text 2.77:1Black text 7.56:1AAA
Cold and DarkWhite text 10.89:1AAABlack text 1.92:1

Blues448 names

ColorNameHEXRGBHSLWhite and black text
Heaven GatesWhite text 1.2:1Black text 17.45:1AAA
GrauzoneWhite text 2.66:1Black text 7.87:1AAA
Canadian TuxedoWhite text 3.05:1LargeBlack text 6.88:1AA
AzureWhite text 3.83:1LargeBlack text 5.47:1AA
Fly a KiteWhite text 1.41:1Black text 14.8:1AAA
Space MissionsWhite text 9.54:1AAABlack text 2.2:1
Royal NightWhite text 10.76:1AAABlack text 1.95:1
Galactic PurpleWhite text 9.97:1AAABlack text 2.1:1

Purples137 names

ColorNameHEXRGBHSLWhite and black text
Simply PurpleWhite text 5.47:1AABlack text 3.83:1Large
Ruthless EmpressWhite text 8.75:1AAABlack text 2.39:1
Foggy LoveWhite text 1.59:1Black text 13.16:1AAA
Poison PurpleWhite text 6.29:1AABlack text 3.33:1Large
Purple PristineWhite text 7.39:1AAABlack text 2.83:1
Fuchsia NebulaWhite text 8.09:1AAABlack text 2.59:1
ExtravioletWhite text 10.49:1AAABlack text 2:1
ImperialWhite text 9.92:1AAABlack text 2.11:1

Pinks410 names

ColorNameHEXRGBHSLWhite and black text
Party PigWhite text 1.97:1Black text 10.63:1AAA
PurpleWhite text 9.41:1AAABlack text 2.22:1
Drama QueenWhite text 3.87:1LargeBlack text 5.41:1AA
Big Bang PinkWhite text 3.67:1LargeBlack text 5.71:1AA
Plastic LipsWhite text 6.7:1AABlack text 3.12:1Large
FlirtWhite text 9.03:1AAABlack text 2.32:1
Baby PinkWhite text 1.62:1Black text 12.91:1AAA
Petal of a Dying RoseWhite text 8.25:1AAABlack text 2.54:1

Browns197 names

ColorNameHEXRGBHSLWhite and black text
Crimson BoyWhite text 5.32:1AABlack text 3.94:1Large
Chocolate RushWhite text 14.13:1AAABlack text 1.48:1
CigarWhite text 6.95:1AABlack text 3.01:1Large
CaribouWhite text 4.95:1AABlack text 4.24:1Large
Mai TaiWhite text 4.66:1AABlack text 4.5:1AA
Moelleux Au ChocolatWhite text 11.24:1AAABlack text 1.86:1
Chicken MasalaWhite text 2.95:1Black text 7.11:1AAA
Glazed ChestnutWhite text 4.45:1LargeBlack text 4.71:1AA

Grays389 names

ColorNameHEXRGBHSLWhite and black text
PlaceboWhite text 1.23:1Black text 16.98:1AAA
In the ShadowsWhite text 1.72:1Black text 12.19:1AAA
Oat MilkWhite text 1.39:1Black text 15.01:1AAA
GunsmokeWhite text 4.22:1LargeBlack text 4.97:1AA
WhaleWhite text 3.95:1LargeBlack text 5.31:1AA
Smoky StudioWhite text 3.72:1LargeBlack text 5.64:1AA
Cloak GreyWhite text 6.4:1AABlack text 3.27:1Large
HavanaWhite text 13.39:1AAABlack text 1.56:1

Blacks81 names

ColorNameHEXRGBHSLWhite and black text
Dire WolfWhite text 14.74:1AAABlack text 1.42:1
Black SheepWhite text 19.37:1AAABlack text 1.08:1
LiquoriceWhite text 20.28:1AAABlack text 1.03:1
Lindworm GreenWhite text 15.63:1AAABlack text 1.34:1
Black KnightWhite text 19.83:1AAABlack text 1.05:1
VoidWhite text 19.25:1AAABlack text 1.09:1
Raven's CoatWhite text 20.69:1AAABlack text 1.01:1
Velvet BlackWhite text 16.25:1AAABlack text 1.29:1

Whites165 names

ColorNameHEXRGBHSLWhite and black text
WhiteWhite text 1:1Black text 21:1AAA
Grandma's CameoWhite text 1.2:1Black text 17.42:1AAA
Toasted Marshmallow FluffWhite text 1.04:1Black text 20:1AAA
Marble WhiteWhite text 1.14:1Black text 18.38:1AAA
MilkWhite text 1:1Black text 20.79:1AAA
Cold WhiteWhite text 1.05:1Black text 19.91:1AAA
Walkie ChalkieWhite text 1.07:1Black text 19.5:1AAA
Hint of RedWhite text 1.26:1Black text 16.55:1AAA

Searches run in your browser. The color you look up is only shared with DEMARCA if you choose to include it in an enquiry and submit the form.

Beyond the tool

A color name is a label. A brand needs a system.

We define your brand colors with exact values for screen and print, name them as tokens your developers can use, and pick the pairs that pass contrast.

Get a brand identity proposalA fixed-price proposal within one working day

The guide

Color Names and Codes: the complete guide

6 referencesMethodology and limitsUpdated 15 October 2026

Built and maintained by the designers and marketers at DEMARCA, an award-winning design studio in Portugal.

On this page
  1. How to find a color name or an HTML color code
  2. Where the CSS color names come from
  3. How HTML color codes work: hex, RGB and HSL
  4. Same name, different code
  5. How to use color names and codes in HTML and CSS
  6. Which text color to use on each color
  7. Methodology and limits
  8. Sources

How to find a color name or an HTML color code

  1. To find the code of a named color, type the name in the search box, for example tomato or navy. The CSS table and the families below show every match, and an exact name opens its details on the right.
  2. To find the name of a code, paste the hex code, with or without the #, or an rgb() or hsl() value. You get the exact name if the code has one, otherwise the three closest names and how close each one is.
  3. To browse, pick a color family such as Blues or Browns, and switch the order between shade and A to Z.
  4. To copy, click any keyword, hex, RGB or HSL value. It goes to your clipboard in the format CSS expects, for example rgb(255, 99, 71).

Got the color in a photo or a screenshot rather than as a code? Use the color picker from image to read the pixel, then come back with the hex code. In British English the same search is for colour names and colour codes, but CSS itself only understands the US spelling: the property is color, never colour.

Where the CSS color names come from

CSS Color Module Level 4, the current W3C standard, defines 148 named colors. Any browser accepts them anywhere a color goes, in any mix of upper and lower case: Tomato, tomato and TOMATO are the same color. They name 139 different colors, because seven grays can be spelled gray or grey, aqua is the same as cyan and fuchsia is the same as magenta.

The list grew in layers. Sixteen basic colors, from black and silver to teal and aqua, were already in HTML 4. Most of the others came from the color names of the X11 window system on Unix, which CSS took over from SVG. They were picked by programmers decades ago, which explains some oddities: darkgray (#A9A9A9) is lighter than gray (#808080), and green (#008000) is much darker than lime (#00FF00). The newest name, rebeccapurple (#663399), was added in 2014 in memory of Rebecca Meyer, the daughter of the CSS author Eric Meyer.

Two other keywords work where a color is expected but are not in the list: transparent, which is fully see-through, and currentcolor, which repeats the text color of the element.

How HTML color codes work: hex, RGB and HSL

A screen mixes every color from red, green and blue light. HTML color codes write down how much of each, in three ways that describe exactly the same colors.

FormatExample (tomato)How to read it
HEX#FF6347Three pairs of hexadecimal digits, 00 to FF, for red, green and blue
Short hex#F64Each digit doubled: #F64 means #FF6644, a close cousin of tomato. Only codes made of three doubled pairs have a short form
RGBrgb(255, 99, 71)The same three channels as numbers from 0 to 255
HSLhsl(9, 100%, 64%)Hue on a 360 degree wheel, then saturation and lightness in percent
HEX with alpha#FF634780A fourth pair for opacity: 80 is about 50% see-through

Each channel has 256 steps, so there are 256 × 256 × 256 = 16,777,216 hex codes. Only a tiny share of them have a name, which is why the finder above reports the nearest name and how far away it is rather than pretending every code has one. #000000 is black, all channels off, and #FFFFFF is white, all channels at full. Equal values give a gray: #333333, often shortened to #333, is the dark gray many sites use for body text.

Same name, different code

Outside the CSS list there is no official owner of color names. Paint makers, design tools and naming lists each choose their own values, so a familiar name can point to very different colors. Here is how the CSS keywords compare with the color-names list for the same word:

NameCSS keywordcolor-names listDifference
Greengreen #008000#00FF00Different color (ΔE 34.5)
Brownbrown #A52A2A#653700Different color (ΔE 21.8)
Plumplum #DDA0DD#66386ADifferent color (ΔE 41.7)
Lavenderlavender #E6E6FA#B56EDCDifferent color (ΔE 31.7)
Violetviolet #EE82EE#9A0EEADifferent color (ΔE 27.3)
Dark Bluedarkblue #00008B#315B7DDifferent color (ΔE 23.0)
Khakikhaki #F0E68C#C3B091Different color (ΔE 17.9)
Beigebeige #F5F5DC#E6DAA6Different color (ΔE 10.1)
Turquoiseturquoise #40E0D0#06C2ACDifferent color (ΔE 8.0)
Light Greenlightgreen #90EE90#76FF7BDifferent color (ΔE 5.8)
Goldgold #FFD700#FFD700Same color
Tealteal #008080#008080Same color

The difference is ΔE (delta E) measured with CIEDE2000, the formula for how different two colors look to the human eye. Under 1, most people cannot tell the two apart. Over 5, they are visibly different colors. When a name has to mean one exact color, for a brand, a product or a developer handoff, always pass the hex code along with it.

How to use color names and codes in HTML and CSS

Color goes in CSS, in a stylesheet or a style attribute. The old HTML color and bgcolor attributes are obsolete. All of these lines set the same orange-red:

p { color: tomato; }
p { color: #ff6347; }
p { color: rgb(255 99 71); }
p { color: hsl(9 100% 64%); }

For text use color, for the area behind it background-color, and for lines border-color. Named colors are quick for prototypes and examples. For a real website, use hex values stored once as variables, so a brand color is written in one place and changed in one place:

:root { --brand: #1f5f6b; --brand-text: #ffffff; }
.button { background-color: var(--brand); color: var(--brand-text); }

The names in the second list, like Eigengrau or Smalt, do not work as CSS keywords. Copy their hex code instead, and keep the name in a comment or a design token so people know what the color is meant to be.

Which text color to use on each color

Every color in the lists shows two samples: white text and black text on that color, with the contrast ratio from the Web Content Accessibility Guidelines (WCAG 2.2). Normal text needs at least 4.5:1 to pass level AA and 7:1 for AAA. Large text, from 24 pixels, or 18.66 pixels in bold, needs 3:1, marked Large. The sample that passes is shown in bold.

Every color passes AA with at least one of the two, but mid-tones only just: gray (#808080) gets 3.94:1 with white and 5.31:1 with black. At AAA, many mid-tones pass with neither, so pick a lighter or darker shade for long text. For any other pair, such as your brand color on a light gray, use the color contrast checker, which also suggests the nearest shade that passes.

Methodology and limits

CSS color names
The 148 keywords and their sRGB values from the named color table of CSS Color Module Level 4. The list was also checked against what Chromium computes for each keyword: all 148 match.
More color names
4,362 names from the open color-names list by David Aerne (MIT license), the same list the color picker and the palette generator use. Every name has a distinct hex code. Names are shown as published, including a few in French, German or Japanese spelling.
Families
Each color is sorted into one of twelve families from its HSL values: black, white and gray by lightness and chroma, brown for dark, muted hues between 10 and 45 degrees, and the rest by hue. It is a rule of thumb, so a color near a border, such as a red-orange, can sit in either family. Within a family, colors are ordered by hue and then from light to dark.
Conversions
HEX and RGB are the 8-bit sRGB values. HSL uses the CSS Color 4 formula, rounded to whole degrees and percent, so converting the HSL back can be one step off the hex code.
Nearest names
The color you enter and every listed color are converted from sRGB to CIE Lab (D65 white point) and compared with CIEDE2000 (Sharma, Wu and Dalal), with all weighting factors at 1. The three smallest differences are shown, and the closest of the 148 CSS keywords by the same measure.
Contrast
White and black text on each color, with the WCAG 2.2 contrast ratio truncated to two decimals, never rounded up. AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1.
Page weight
The CSS table and a sample of each family are part of the page. The full list of 4,362 names, about 170 KB, loads only when you search, open a family or scroll to it.
Limits
No Pantone, RAL or paint codes: those systems are licensed and depend on ink, paper and surface. Screen colors also vary with the display, so a color on your monitor is a close view, not a proof.

Sources

Show all 6 sources

FAQ

Questions people ask

How can I find the name of a color?

If you have its code, paste it into the search box above: a hex code like #1E90FF, an rgb() or an hsl() value. You get the exact name if the code has one, otherwise the three nearest names from a list of 4,362, with how close each one looks. If the color is in a photo or a screenshot, open the color picker from image first to read its hex code.

How many color names are there in HTML and CSS?

148. CSS Color Module Level 4 defines 148 named colors, from aliceblue to yellowgreen, and every current browser accepts them in HTML and CSS. They describe 139 different colors, because seven grays can be spelled gray or grey, aqua equals cyan and fuchsia equals magenta. Any other color has to be written as a hex, RGB or HSL value.

Are there only 256 colors?

No. 256 was the limit of old 8-bit displays and GIF images. A hex code has 256 steps for each of red, green and blue, which gives 256 × 256 × 256 = 16,777,216 colors. Only a few thousand of them have common names, which is why the finder above gives the nearest name rather than an exact one for most codes.

Is #000000 100% black?

On a screen, yes: #000000 sets red, green and blue to zero, the darkest color a display can show, and it is the CSS keyword black. Print is different. Printers build black from ink, and for large dark areas they often use a rich black that mixes other inks with black, so ask your printer for their recommended values.

What color is #333 in HTML?

A very dark gray. #333 is the short form of #333333, which is rgb(51, 51, 51). In the color-names list it is called Carbon. It is a common choice for body text because it is softer than pure black, and white text on it has a contrast ratio of 12.63:1, which passes WCAG AAA.

Is black 0 0 0 or 255 255 255?

Black is 0, 0, 0: red, green and blue all off. 255, 255, 255 is white, every channel at full. In hex they are #000000 and #FFFFFF, and in CSS you can also write them as black and white.

What is the RGB code for 255, 255, 255?

It is white, written rgb(255, 255, 255) in CSS. The hex code is #FFFFFF, or #FFF for short, and the CSS keyword is white. In HSL it is hsl(0, 0%, 100%).

How do I convert RGB colors to HTML colors?

Type the three numbers into the search box above, for example 255, 99, 71, and copy the hex code, here #FF6347, the CSS color tomato. By hand, write each number from 0 to 255 in base 16 with two digits: 255 is FF, 99 is 63 and 71 is 47. You can also use rgb(255, 99, 71) directly in CSS: browsers accept it as is.

How do I add a color to HTML code?

With CSS, either in a stylesheet or in a style attribute: color: #1e90ff; sets the text color and background-color: dodgerblue; sets the color behind it. Named colors, hex codes, rgb() and hsl() all work. The old HTML attributes color and bgcolor are obsolete, so use CSS for new pages.

What are some unusual color names?

The list above has plenty. Eigengrau (#16161D) is the dark gray people see in total darkness. Smalt (#003399) is a deep blue named after a cobalt glass pigment. Xanthic (#F4E216) comes from the Greek word for yellow, and Coquelicot (#FF3800) is the French word for the red poppy. Search for any of them to see the codes and the nearest CSS color.

Can you officially name a color?

Only the W3C decides which names work in CSS, and its list of 148 changes very rarely: the last addition was rebeccapurple in 2014. Outside CSS there is no official authority. Paint makers, Pantone and open lists like color-names each publish their own names, so the same name can mean different colors. For your own brand, name your colors as design tokens and always pair each name with its hex code.

More free tools

See all 52 tools

Brand color system

Let's make something matter.

We define your brand colors with exact values for screen and print, name them as tokens your developers can use, and pick the pairs that pass contrast. Independent design and marketing studio in Portugal. Senior-led projects, transparent pricing and clearly defined deliverables for international clients.

  • A reply from a designer within one working day
  • A fixed-price proposal before any work starts
  • Senior-led work with clearly defined deliverables
  • Clients in Portugal, across Europe and further afield

Request a quote

Prefer email? hello@wearedemarca.com