Dark gray

The CSS gray that is lighter than gray, because it was named against a different gray.

Overview

Dark gray is a medium light, perfectly neutral gray, the shade of an overcast sky or a dry concrete sidewalk. Its code is #A9A9A9: red, green and blue all at 169, about 66% of full strength. Because the three channels are equal, it has no hue and no warm or cool tint.

The name is misleading. In CSS, darkgray is lighter than plain gray, #808080. The two come from different lists. Gray is one of the 16 basic HTML colors, which HTML 3.2 said were taken from the Windows VGA palette, and there it is an exact half, 128 128 128. Dark gray comes from the X Window System’s color list, where gray is 190 190 190, #BEBEBE, almost the same as HTML’s silver. Next to that gray, 169 really is darker. The CSS Color Module Level 4 itself points out that “darkgray is lighter than gray”.

Dark gray was a late addition to the X list. It isn’t in the first list of 1986, in Paul Raveling’s or John Thomas’s 1989 revisions, or in the X11 Release 4 and Release 5 lists. It first appears in the list for X11 Release 6, dated February 1994, at the very end of the file, together with dark blue, dark cyan, dark magenta, dark red and light green. No surviving note says who added it or why. Oddly, the first list of 1986 called almost the same value, 168 168 168, light gray.

On screens, dark gray takes black text well: black on it has a contrast of about 8.9:1, while white reaches only about 2.4:1, too low even for large headings. As a text color on near-black it reads at about 8:1. It pairs well with charcoal, navy, safety orange, mustard and the lighter grays such as gainsboro.

HEX#A9A9A9
RGBrgb(169, 169, 169)
HSLhsl(0, 0%, 66%)
HSV0°, 0%, 66%
CMYK0, 0, 0, 34
OKLCHoklch(73.5% 0.000 89.9)
Every code converts from the HEX value #A9A9A9. #A9A9A9 is the CSS keyword darkgray (also spelled darkgrey), rgb(169, 169, 169), defined in the CSS Color Module Level 4 and first listed among the web’s color names in SVG 1.0 (2001). It comes from the X Window System’s color list as shipped in X11 Release 6, 1994 (xc/programs/rgb/rgb.txt, revision 10.41 of 20 February 1994, in the X11 Release 6 archive, 169 169 169). No color dictionary defines this exact value. CMYK is a screen-based estimate; print results vary.
Dark gray color card, hex #A9A9A9: “Lighter than gray, just don’t tell it”

Dark gray on the color map

No survey measures dark gray itself. The 1986 light gray sits on the code, too close to tell apart. People’s average plain grey in the xkcd survey is a little darker, with a faint green tint; their average dark grey, #363737, is far darker and off the chart. The outline is an approximate range, not a measured one.

Shades and tints

Tints with white

Shades with black

Tones with gray

Dark gray sits in the middle. Tints add white, shades add black and tones add gray, in 10% steps out from it. Tap any swatch to copy its code.

Light and dark dark gray

#CBCBCB
Pale dark grayMixed 40% with white: a light gray, between CSS silver and light gray.
#BEBEBE
X11 grayPlain gray in the X11 list since Release 5 in 1991, 190 190 190 (192 before that). Dark gray was named as a darker step from this gray.
#A9A9A9
Dark grayThe reference color. It matches none of X11’s numbered grays: gray66 is 168, gray67 is 171.
#A8A8A8
Light gray (1986)The first X list’s light gray, used from 1986 until 1989, when light gray became 211 211 211. See light gray
#808080
Gray (HTML)The CSS keyword gray, an exact half, from the 16 HTML colors. Darker than dark gray.
#656565
Deep dark grayMixed 40% with black: close to CSS dim gray, #696969.

Colors that go with dark gray

Pairings that work in rooms, outfits and interfaces.

Dark gray and charcoal

A quiet, all-neutral scheme. Dark gray works for borders and secondary text on larger sizes, charcoal for body text.

Dark gray and safety orange

Concrete and traffic cones: a workwear look where the orange does all the shouting.

Dark gray and navy

Suit-and-tie colors. Navy carries the text and buttons, dark gray the dividers and icons.

Dark gray on black

A dark theme where dark gray is the text color. It reads at about 8:1 on near-black, softer than white.

Dark gray and mustard

A warm yellow brings a neutral gray to life. Good for a poster or a product page.

The CSS gray scale

Gray, dark gray, silver and light gray in their real order, darkest first. Black text works on all of them.

Color-wheel palettes

Pick a palette to see where its colors sit on the color wheel. The caret marks dark gray. Tap a band to copy its code.

A gray has no hue, so turning it around the wheel only gives the same gray back. Monochrome is the one wheel palette that works for it.

Similar colors

Greige82%Mushroom82%Khaki72%Cement77%Dark grayHeather gray76%Pastel purple79%

Lined up by hue around dark gray. Hover a color to see how similar it is.The bar under each name shows how similar it is. Similarity comes from the distance between the two colors in OKLab, a model of how we see color.

Dark gray vs silver

Dark gray#A9A9A9 · no hue
  • Darker: all three channels at 169
  • From the X11 list, added in 1994
  • Also spelled darkgrey in CSS
Silver#C0C0C0 · no hue
  • Lighter: all three channels at 192
  • One of the 16 basic HTML colors
  • Almost the same as X11’s plain gray

Meaning

  • CSS keyword
  • Lighter than gray
  • Added in 1994
  • A light gray in dictionaries

No study has looked at what dark gray means to people. Color research tests broad words such as gray, never this exact keyword, so the claims below are about the name, how the code came about and how it compares with other grays.

Dark only next to X11’s gray

Historical record

HTML 3.2 took its 16 color names from the Windows VGA palette and set gray at #808080, an exact half. In the X Window System’s list, gray has been 190 190 190 since 1991 (192 before), close to HTML’s silver. Dark gray, 169, was named as a step below that gray. When CSS merged both lists, it kept HTML’s gray and X11’s dark gray, and the CSS Color Module Level 4 notes that the names “are not even internally consistent (darkgray is lighter than gray…)”.1, 2, 3

A late addition, in 1994

Historical record

Dark gray isn’t in any X color list before 1994: not the 1986 list, not Paul Raveling’s or John Thomas’s 1989 drafts, and not the lists of X11 Release 4 (1989) or Release 5 (1991). It first appears in the Release 6 list, dated 20 February 1994, as the last block of the file with dark blue, dark cyan, dark magenta, dark red and light green. The release notes don’t mention it, and no record says why it was added.2

Once called light gray

Historical record

In the first X list of 1986, light gray was 168 168 168, a single step below today’s dark gray, and dim gray was 84 84 84. When the list was retuned in 1989, light gray moved up to 211 and dim gray to 105. Five years later, dark gray arrived at 169, next to where light gray had begun.2

Color dictionaries call it light

Color dictionary

The 1955 ISCC-NBS system names its neutral grays light gray (centered around #B9B8B5), medium gray (#848482) and dark gray (#555555). By that scale, #A9A9A9 is a light gray, much nearer the first than the third. In Randall Munroe’s 2010 survey, where people named colors on their own screens, the average dark grey was #363737, darker still, and plain grey was #929591, a little darker than CSS dark gray.4, 5

X11 kept its own order

Historical record

The X.Org color list still has gray at 190, so in X11 dark gray really is darker than gray. In 2014 it added “web gray” (128 128 128) and “x11 gray” (190 190 190), with the same pairs for green and maroon, because, as the change note says, a handful of CSS colors “have different values” from X11’s.6

Sources (6)
  1. W3C, CSS Color Module Level 4, named colors: darkgray #a9a9a9, gray #808080, and the note that the names “are not even internally consistent”.
  2. The X Window System’s color lists: the first list (1986–88), old-rgb.txt, Paul Raveling’s raveling.txt and John Thomas’s thomas.txt, hosted by Aubrey Jaffer, MIT CSAIL; mit/rgb/rgb.txt in the X11 Release 3, Release 4 and Release 5 archives; and xc/programs/rgb/rgb.txt (revision 10.41, 20 February 1994) in the X11 Release 6 archive, also at Jaffer’s rgb.txt.
  3. W3C (1997). HTML 3.2 Reference Specification: the 16 color names “originally picked as being the standard 16 colors supported with the Windows VGA palette” (Gray #808080, Silver #C0C0C0).
  4. Kelly, K. L. & Judd, D. B. (1955). The ISCC-NBS Method of Designating Colors and a Dictionary of Color Names, NBS Circular 553, centroids tabulated in Aubrey Jaffer’s “Color-Name Dictionaries” (264 light gray, 265 medium gray, 266 dark gray).
  5. Randall Munroe (2010), “Color Survey Results”, and the survey’s 954 most common color names (dark grey #363737, grey #929591), CC0.
  6. X.Org Foundation, rgb 1.0.6 (November 2014): rgb.txt and its ChangeLog entry “Add aliases for colors that differ between X11 and CSS” (Daphne Pfister, 23 June 2014).

History

Gray is one of the oldest color words in English, but dark gray is a young computer name. Its story is two color lists, one from a Unix window system and one from a PC graphics card, that met on the web and disagreed about what gray is.

  1. Before 1100

    First known use of “gray”, from Old English grǣg. “Grey” is the chiefly British spelling.1

  2. 1986

    The X Window System’s first color list, shipped with X10 Release 3 and kept in X11 Release 1 in 1987, has dim gray at 84 84 84 and light gray at 168 168 168, one step from today’s dark gray. It has no plain gray and no dark gray.2

  3. 1988

    X11 Release 3 adds a plain gray, 192 192 192, and a numbered scale from gray0 (black) to gray100 (white).2

  4. 1989

    Paul Raveling and John Thomas each post a revised list; neither has a dark gray. The merged list in X11 Release 4, dated 7 December, moves light gray to 211 and dim gray to 105 and keeps gray at 192.2, 3

  5. 1991

    In the X11 Release 5 list, the only change is gray, lowered from 192 to 190 190 190.4

  6. 1994

    The X11 Release 6 list, revision 10.41 of 20 February, ends with six new names: dark gray (169 169 169), dark blue, dark cyan, dark magenta, dark red and light green. The release notes, dated May 16, don’t mention them.5

  7. 1996

    CSS level 1, a W3C Recommendation on December 17, suggests 16 color keywords taken from the Windows VGA palette, including gray and silver. Dark gray isn’t among them.6

  8. 1997

    HTML 3.2, a W3C Recommendation on January 14, gives the 16 names their values: Gray = #808080 and Silver = #C0C0C0.7

  9. 2001

    SVG 1.0 lists “darkgray” and “darkgrey”, rgb(169, 169, 169), among the web’s color keywords, beside gray at rgb(128, 128, 128). From here on, dark gray is lighter than gray on the web.8

  10. 2011

    CSS Color Module Level 3 becomes a W3C Recommendation on June 7 and makes darkgray, #a9a9a9, an official CSS keyword. Level 4 keeps it and notes that it is lighter than gray.9, 10

  11. 2014

    X.Org’s rgb 1.0.6 adds “web gray” and “x11 gray” aliases so that programs can choose either meaning. In X11 itself, dark gray stays darker than gray.11

Sources (11)
  1. Merriam-Webster, “gray”, etymology, first known use and the variant “chiefly British grey”.
  2. The X Window System’s color lists, hosted by Aubrey Jaffer, MIT CSAIL: old-rgb.txt, thomas.txt and raveling.txt; and the lists in the X10 Release 3, X11 Release 1, X11 Release 3 and X11 Release 4 archives (merged mit/rgb/rgb.txt, 7 December 1989).
  3. Aubrey Jaffer, “Color-Name Dictionaries”, MIT CSAIL, quoting the X11 README and the notes of John Thomas (Tektronix) and Paul Raveling (ISI).
  4. X Consortium, X11 Release 5: mit/rgb/rgb.txt (dated 13 May 1991, gray 190 190 190) in mit-1.tar.Z, and the release notes of August 29, 1991, in the X11 Release 5 archive.
  5. X Consortium, X11 Release 6: xc/programs/rgb/rgb.txt, revision 10.41 of 20 February 1994, in xc-1.tar.gz, and the release notes of May 16, 1994, in the X11 Release 6 archive; the same file is at Jaffer’s rgb.txt.
  6. W3C (1996). Cascading Style Sheets, level 1, section on color units: “These 16 colors are taken from the Windows VGA palette”.
  7. W3C (1997). HTML 3.2 Reference Specification, color names and sRGB values.
  8. W3C (2001). Scalable Vector Graphics (SVG) 1.0, recognized color keyword names.
  9. W3C (2011). CSS Color Module Level 3, extended color keywords, W3C Recommendation, June 7, 2011.
  10. W3C, CSS Color Module Level 4, named colors: darkgray, #a9a9a9, 169 169 169, and the note “darkgray is lighter than gray”.
  11. X.Org Foundation, rgb 1.0.6, released 8 November 2014: rgb.txt and ChangeLog.

Questions

What color is dark gray?

A medium light, neutral gray. Its code is #A9A9A9 (RGB 169, 169, 169), the CSS keyword darkgray. All three channels are equal, so it has no tint.

Why is dark gray lighter than gray in CSS?

Because the two names come from different lists. CSS gray (#808080) is one of the 16 HTML colors, taken from the Windows VGA palette. Dark gray comes from the X11 color list, where gray is 190 190 190, much lighter, so 169 was a darker step there. CSS kept both, and the CSS Color Level 4 specification itself notes that darkgray is lighter than gray.

What is the difference between dark gray and silver?

Silver (#C0C0C0) is lighter, at 192 per channel, and is one of the 16 basic HTML colors. Dark gray (#A9A9A9), at 169, came from the X11 list. X11’s own plain gray, 190, is almost the same as silver.

Is it darkgray or darkgrey?

Both work in CSS and give the same color, #A9A9A9. Gray is the American spelling and grey the chiefly British one. The X11 list had both spellings from the start, and SVG 1.0 brought both to the web in 2001.

Where does the name dark gray come from?

From the X Window System’s color list. It first appears in the list for X11 Release 6, dated February 1994, alongside dark blue, dark cyan, dark magenta, dark red and light green. No record says who added it or why.

Is dark gray a CSS color?

Yes. darkgray and darkgrey are CSS named colors. darkgray, #A9A9A9 and rgb(169, 169, 169) all give exactly the same color. If you want a gray darker than CSS gray, use dimgray (#696969) or a hex code.

What text color works on dark gray?

Black or near-black. Black on dark gray has a contrast of about 8.9:1. White reaches only about 2.4:1, which fails even for large text.

What colors go with dark gray?

Charcoal and soft whites for a calm neutral look, navy for a formal one, and a strong accent such as safety orange or mustard to keep it from looking dull.