designwithfocus

Color codes & color models

Silver Color Code: HEX, RGB, CMYK and HSL Values

By Design With Focus Team 7 min read
A row of gray swatches from whitesmoke to dimgray with the silver hex labeled

Short answer

The CSS silver color code is #c0c0c0, which is rgb(192, 192, 192). The W3C CSS Color Module Level 4 draft of 1 December 2026 lists that keyword, and MDN's named-color table shows the same hex. CMYK and HSL below are converted from those sRGB channels and rounded to whole numbers. Other gray keywords are their own rows, not tints mixed from silver.

Last verified against the sources listed below.

Key takeaways

  • CSS keyword silver is #c0c0c0, rgb(192, 192, 192). The keyword is ASCII case-insensitive.
  • Silver is one of the 16 VGA names in the CSS Color Level 4 draft.
  • lightgray, darkgray, gainsboro, whitesmoke, dimgray, and gray are separate named colors.
  • The draft notes that darkgray is lighter than gray. The names are not a smooth ramp.
  • HSL and CMYK here are computed from the sRGB channels, then rounded to the nearest whole number.
  • Grey spellings such as grey and lightgrey share the hex of the gray spelling.

The silver color code people can rely on in CSS is the named color silver. CSS Color Module Level 4, a W3C Candidate Recommendation Draft dated 1 December 2026, lists that keyword as #c0c0c0, with sRGB channels 192, 192, and 192.

The CSS Working Group draft dated the same day shows the same #c0c0c0 swatch. MDN’s named-color table lists #c0c0c0 for silver as well. Those are the screen values. They are not a metal sample.

What is the silver color code?

The silver color code is #c0c0c0, or rgb(192, 192, 192). In a stylesheet you can also write the keyword silver. Section 6.1 of the W3C draft says named colors exist so common colors can be written as an identifier anywhere a color is accepted.

The same section says the keywords are ASCII case-insensitive, so silver and SILVER are one keyword. The names resolve to colors in sRGB.

The draft also says 16 named colors come from the VGA palette: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow. Silver is in that list of 16. The draft says most of the other names came from an X11 set later adopted into SVG.

The HTML living standard, last updated 2 December 2026, parses a named color by an ASCII case-insensitive match, then returns the CSS color for that keyword. A legacy HTML color attribute and a CSS declaration meet on the same word.

Copy the keyword or the hex from the Silver Color Code tool if you want the value without retyping it. The tool does not create a second definition. The specification does.

Which named CSS colors sit near silver?

Nine other keywords in the same table are gray-family names. They are not mixes of #c0c0c0. Each row’s hex and RGB are copied from the W3C table. MDN lists the same hex codes for silver, gray, lightgray, and gainsboro.

Keyword HEX RGB
whitesmoke #f5f5f5 245, 245, 245
gainsboro #dcdcdc 220, 220, 220
lightgray #d3d3d3 211, 211, 211
silver #c0c0c0 192, 192, 192
darkgray #a9a9a9 169, 169, 169
gray #808080 128, 128, 128
dimgray #696969 105, 105, 105
lightslategray #778899 119, 136, 153
slategray #708090 112, 128, 144
darkslategray #2f4f4f 47, 79, 79

The British spellings grey, lightgrey, darkgrey, dimgrey, lightslategrey, slategrey, and darkslategrey are in the same table. Each one uses the hex of the matching gray spelling.

The draft’s own note says the names are not internally consistent. It gives darkgray being lighter than gray as the example. lightgray at 211 is lighter than silver at 192, and dimgray at 105 is darker than gray at 128. If you need a step that is not one of these words, it is a custom color, and you should label it as custom.

Gold is a different keyword, #ffd700. It is not a warm version of silver.

RGB is the channel model these numbers use. The table is that model, copied from the specification, not a paint recipe.

How were the CMYK and HSL numbers computed?

CMYK and HSL are not columns in the named-color table. They are conversions from the sRGB channels above, rounded to the nearest whole number with halves rounding away from zero. The inputs are the channel divided by 255.

For HSL, let the largest channel fraction be Max and the smallest be Min. Lightness is (Max + Min) / 2. If Max equals Min, hue and saturation are 0. Otherwise saturation is (Max minus Min) divided by (1 minus the absolute value of (2 times lightness minus 1)).

Hue starts from the channel that is Max: green minus blue from red, blue minus red plus 2 from green, and red minus green plus 4 from blue. Multiply by 60 and wrap into 0 to 360. When green and blue are tied and both are Max, the hue is 180.

For CMYK, black is 1 minus the largest channel fraction. If black is 1, cyan, magenta, and yellow are 0. Otherwise each of those is (1 minus that channel minus black) divided by (1 minus black). Multiply by 100 and round.

Keyword HSL CMYK
whitesmoke 0, 0%, 96% 0, 0, 0, 4
gainsboro 0, 0%, 86% 0, 0, 0, 14
lightgray 0, 0%, 83% 0, 0, 0, 17
silver 0, 0%, 75% 0, 0, 0, 25
darkgray 0, 0%, 66% 0, 0, 0, 34
gray 0, 0%, 50% 0, 0, 0, 50
dimgray 0, 0%, 41% 0, 0, 0, 59
lightslategray 210, 14%, 53% 22, 11, 0, 40
slategray 210, 13%, 50% 22, 11, 0, 44
darkslategray 180, 25%, 25% 41, 0, 0, 69

Silver’s unrounded lightness is about 75.29 percent, so the nearest whole percent is 75. Its black fraction is about 0.247, so the nearest percent is 25. Gray’s unrounded lightness is about 50.20 percent and its black fraction is about 0.498, so both round to 50. The slate rows are the only ones here with a hue, because their channels are not equal.

How do you write silver in CSS?

Write the keyword, the hex, or the rgb() function. All three point at the channels in the table when the keyword is silver and the hex is #c0c0c0.

color: silver is the short form, and color: #c0c0c0 is the hex the draft prints. color: rgb(192 192 192) or rgb(192, 192, 192) carries the same three channels.

Use the keyword when you want the name to stay readable. Use the hex when a design tool asks for six digits. Use gray, not silver, when you want the middle step at 128.

Do not invent a suffix and expect a metal. silver is a flat sRGB color. It will not shine because the keyword sounds metallic. If the layout needs a highlight, that is a second shape or a gradient you design, not a different official silver.

What should you leave out of a silver spec?

Leave out any hex that the named-color table does not list, if you are claiming it is “the” silver. Jewelry catalogs, foil brands, and social-media palettes publish their own codes. Those codes can be useful as custom colors. They are not the CSS keyword.

Also leave out a contrast ratio unless you compute it for a specific pair and show the inputs. This page does not. #c0c0c0 on white is a different problem from #c0c0c0 on black, and a ratio you did not calculate does not belong in the table.

For print, hand the rounded CMYK over as a start, then proof it. The conversion ignores the press profile on purpose so the arithmetic stays repeatable. A foil silver, if the job needs one, comes from the printer’s sample, not from renaming #c0c0c0.

Frequently asked questions

What is the HEX code for silver?

The CSS keyword silver is #c0c0c0. CSS Color Module Level 4, the Candidate Recommendation Draft of 1 December 2026, lists that hex next to the sRGB channels 192, 192, and 192. MDN's named-color table shows the same #c0c0c0. You can type the keyword silver in a stylesheet. The specification says these keywords are ASCII case-insensitive, so Silver and SILVER are the same keyword. The six digits above are the form the specification prints.

What is the RGB code for silver?

rgb(192, 192, 192). That is the channel triple in the W3C named-color table for silver. The specification says the names resolve to colors in sRGB. Divide each channel by 255 if you need the fractions used in the HSL and CMYK conversion. For silver that fraction is 192 divided by 255, about 0.753, on every channel. Those fractions are the inputs. They are not a second official notation.

Why is darkgray lighter than gray?

Because the named-color table says so. darkgray is #a9a9a9, channels 169, 169, 169. gray is #808080, channels 128, 128, 128. Section 6.1 of the CSS Color draft points out that the names are not internally consistent, and it uses darkgray being lighter than gray as the example. The same note says the names were standardized because they were already widely implemented, not because they form a tidy ramp. Use the hex when the English name would mislead a reader.

Do grey and gray use the same hex?

Yes for the pairs the table lists twice. gray and grey are both #808080. lightgray and lightgrey are both #d3d3d3. darkgray and darkgrey are both #a9a9a9. dimgray and dimgrey are both #696969. The slate names follow the same pattern: lightslategray and lightslategrey are #778899, slategray and slategrey are #708090, and darkslategray and darkslategrey are #2f4f4f. Pick one spelling in a project so a search finds every use.

Are the CMYK numbers press-ready?

They are a profile-free conversion from the sRGB channels, rounded to the nearest whole percent, with halves rounding away from zero. Black is 1 minus the largest channel. The other inks are what remains after black is removed, divided by 1 minus black. A real press profile can shift the printed result. Treat the table as a starting point, then proof on the stock. Screen silver and a metallic ink are not the same sample.

Sources