Light gray

A gray that was darker than plain gray in 1988, until two 1989 color lists lifted it to 211.

Overview

Light gray is a pale, perfectly neutral gray, like a concrete sidewalk on a dry day or a sheet of newsprint in shade. Its code is #D3D3D3: red, green and blue all at 211 out of 255, about 83%. It sits between gainsboro, #DCDCDC, and silver, #C0C0C0. Mix it 20% with white and you get gainsboro exactly; mix it 20% with black and you get CSS dark gray, #A9A9A9.

The name is the CSS keyword lightgray, and lightgrey works just as well, because the X Window System’s color list always gave both spellings. Light gray was in that list from the first version in 1986, but much darker, at 168 168 168. When plain gray joined in 1988 at 192 192 192, light gray was the darker of the two. In October 1989 John Thomas at Tektronix and Paul Raveling at USC’s Information Sciences Institute each raised it to 211, and X11 Release 4 shipped that value in December. The web adopted it in 2001, and it has not changed since.

The gray names in CSS still don’t line up. CSS gray is #808080, one of the 16 basic HTML colors, while dark gray and light gray come from X11. So from dark to light the order runs dim gray, gray, dark gray, silver, light gray, gainsboro. The CSS standard admits the names are “not even internally consistent”.

On screens, light gray needs dark text: black on it has a contrast of about 14:1, white only 1.5:1. CSS dim gray reaches only about 3.7:1, so for body text use a gray of #595959 or darker. It works for disabled buttons, borders, table stripes and page backgrounds, and pairs with near-black, navy, deep teal and warm corals.

HEX#D3D3D3
RGBrgb(211, 211, 211)
HSLhsl(0, 0%, 83%)
HSV0°, 0%, 83%
CMYK0, 0, 0, 17
OKLCHoklch(86.7% 0.000 89.9)
Every code converts from the HEX value #D3D3D3. #D3D3D3 is the CSS keyword lightgray (also spelled lightgrey), rgb(211, 211, 211), 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, where John Thomas and Paul Raveling both set 211 211 211 in 1989 (raveling.txt), replacing the first list’s 168 168 168; X11 Release 4 shipped it in December 1989. CMYK is a screen-based estimate; print results vary.
Light gray color card, hex #D3D3D3: “Gray or grey, it’s still 211”

Light gray on the color map

No survey measures the CSS color itself, but the xkcd survey’s light grey is almost the same lightness, with a faint green tint that puts it just off the center line, inside the outline. The 1986 value sits far below, outside it. The outline is an approximate range, not a measured one.

Shades and tints

Tints with white

Shades with black

Tones with gray

Light 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 light gray

#E5E5E5
Pale light grayMixed 40% with white: a soft off-white, still visibly gray next to pure white.
#DCDCDC
GainsboroMixed 20% with white, light gray turns into exactly the CSS keyword gainsboro, 220 220 220. See gainsboro
#D3D3D3
Light grayThe reference color, 211 211 211, in both spellings since 1989.
#C0C0C0
X11 gray (1988–89)Plain gray in the X11 lists of 1988 and 1989, 192 192 192: lighter than light gray was then. The same code is CSS silver today. See silver
#B9B8B5
ISCC-NBS light grayThe center of the light gray category, number 264, in the ISCC-NBS color system: darker than the web color, with a hint of warmth.
#A9A9A9
Dark grayMixed 20% with black, light gray becomes exactly CSS dark gray, 169 169 169, within one step of the 1986 light gray, 168. See dark gray

Colors that go with light gray

Pairings that work in rooms, outfits and interfaces.

Light gray and ink

Plain and readable. Light gray as a panel or page color with near-black text and buttons.

Light gray and navy

Crisp and businesslike. Navy for text and buttons, white for cards on a light gray page.

Three 20% steps

Light gray with its own mixes: 40% white, 20% black (CSS dark gray) and 40% black. A tidy gray scale for interfaces.

Light gray and coral

Warm against cool. Light coral and a deep brick red keep the gray from feeling flat.

Light gray and deep teal

Calm and clean, good for dashboards. Deep teal for text and accents, teal for charts.

Light gray on charcoal

A dark theme with light gray as the text color, softer on the eyes than pure white.

Color-wheel palettes

Pick a palette to see where its colors sit on the color wheel. The caret marks light 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

Oatmeal80%Bone83%Oyster90%Light grayGainsboro86%Duck egg blue80%Columbia blue79%

Lined up by hue around light 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.

Light gray vs gainsboro

Light gray#D3D3D3 · no hue
  • Darker: all three channels at 211
  • In the X11 list since 1986, first as 168
  • Two spellings: lightgray and lightgrey
Gainsboro#DCDCDC · no hue
  • Lighter: all three channels at 220
  • Added in 1989 with the paint-sample whites
  • One spelling, no gray in the name

Meaning

  • CSS keyword
  • Gray or grey, both work
  • Darker until 1989
  • Retuned on 1989 monitors

No study has looked at what the CSS color light gray means to people. Color research tests broad words such as gray, never this exact code, so the claims below are about the code’s record, its two spellings and how it compares with dictionary and survey light grays.

Darker than gray, once

Software record

The first X color list, shipped in 1986, had light gray and dim gray but no plain gray. Light gray was 168 168 168. The next release, in early 1988, added gray at 192 192 192, so for about two years light gray was darker than gray. X11 Release 3 later that year added numbered grays from gray0 to gray100, and gray66 is exactly 168 168 168.1

Lifted to 211 in 1989

Software record

In October 1989 two people posted revised lists. John Thomas at Tektronix, who tuned his to a box of 72 crayons, set light gray at 211 211 211 and gray at 174. Paul Raveling at USC’s Information Sciences Institute, tuning on his HP monitor, also set light gray at 211 and kept gray at 192, filing both under black, white and “favorite shades of gray”. The merged list in X11 Release 4 kept 211.1, 2

Early browsers listed lightgrey

Browser record

A 1996 Microsoft table of the X11 colors supported by Internet Explorer 3.0 and Netscape Navigator lists LightGrey, while every other gray name uses gray. The color table in O’Reilly’s JavaScript: The Definitive Guide does the same. In 2003 a user on a W3C mailing list reported that Internet Explorer didn’t show lightgray or grey. SVG drafts from 2000 and SVG 1.0 in 2001 listed both spellings, and CSS kept both.3, 4, 5, 6

The dictionary light gray is darker

Color dictionary

The ISCC-NBS color system of 1955 uses light gray as one of its 267 standard names, category 264, and its dictionary lists Light Gray from several older color standards. The category’s center, as computed for Aubrey Jaffer’s tables, is #B9B8B5, much darker than the web color. Maerz and Paul names that fall in it include pearl, fog, moonbeam and aluminum.7, 8

What people call light grey

Online survey

In Randall Munroe’s 2010 color survey, where people named colors shown on their own screens, the average light grey was #D8DCD6: almost exactly as light as the CSS color, with a faint green tint. Side by side, the two are hard to tell apart.9

Sources (9)
  1. The X Window System’s color lists: the first list of X10 Release 3 (1986) and X11 Release 1 (1987), light gray 168 168 168 and no gray, in the X10R3 and X11R1 archives; X11 Release 2’s util/rgb/rgb.txt (dated 24 February 1988, gray 192 192 192) in the X11R2 archive; X11 Release 3’s rgb directory notes (“gray0-gray100 were added”) in the X11R3 archive; John Thomas’s thomas.txt and Paul Raveling’s raveling.txt (light gray 211 211 211), hosted by Aubrey Jaffer, MIT CSAIL; and the merged list of 7 December 1989 in the X11R4 archive.
  2. Aubrey Jaffer, “Color-Name Dictionaries”, MIT CSAIL, quoting the X11 README and the notes of John Thomas and Paul Raveling; Alex Sexton (12 March 2014), reply on the history of the X11 colors, www-style mailing list, W3C, with the dates of the two 1989 posts.
  3. Robert Hess, Microsoft Corporation (22 November 1996), “Named Colors by Hue”, MSDN, a table of the X11 colors supported by Internet Explorer 3.0 and Netscape Navigator, listing LightGrey.
  4. David Flanagan, JavaScript: The Definitive Guide (O’Reilly), appendix G, “JavaScript and HTML Color Names and Values”, transcription: Navigator’s color names include lightgrey, #D3D3D3.
  5. www-amaya mailing list, W3C (2003), thread on gray, grey, lightgray and lightgrey, reporting that Internet Explorer did not show grey or lightgray.
  6. W3C, SVG Working Draft of 29 June 2000 and SVG 1.0 (2001), both listing lightgray and lightgrey as rgb(211, 211, 211); CSS Color Module Level 4, named colors.
  7. Kelly, K. L. & Judd, D. B. (1955). The ISCC-NBS Method of Designating Colors and a Dictionary of Color Names. National Bureau of Standards Circular 553. PDF at NIST.
  8. Aubrey Jaffer, MIT CSAIL: NBS/ISCC centroids (264 Light Gray, #B9B8B5) and Maerz and Paul (1930) names mapped to ISCC-NBS centroids.
  9. Randall Munroe (2010), “Color Survey Results”, and the survey’s 954 most common color names (light grey #d8dcd6), CC0.

History

The word gray is older than English spelling rules, which is partly why CSS accepts it both ways. The code’s own story is a value that moved: darker than gray in 1988, raised to 211 in 1989, and left alone ever since.

  1. Before 1100

    The adjective gray is in use in English, from Old English grǣg. Merriam-Webster gives gray as the main spelling and grey as a less common variant.1

  2. 1955

    The ISCC-NBS system names light gray as one of 267 standard color categories, number 264, between white and medium gray.2, 3

  3. 1986

    The first X color list ships with X10 Release 3 on June 7, with light gray at 168 168 168 in both spellings, dim gray, and no plain gray. X11 Release 1 keeps it in 1987.4, 5

  4. 1988

    X11 Release 2 adds gray at 192 192 192, lighter than light gray. Release 3, in October, adds gray0 to gray100; gray66 equals the old light gray.4

  5. October 1989

    Paul Raveling (USC ISI, HP monitor) and John Thomas (Tektronix, 72 crayons) post revised lists. Both set light gray at 211 211 211.5, 6

  6. December 1989

    X11 Release 4 ships the merged list, dated 7 December, with light gray at 211 under four spellings: light grey, LightGrey, light gray and LightGray.4

  7. 1996

    A Microsoft table of the X11 colors supported by Internet Explorer 3.0 and Netscape Navigator lists only LightGrey, #D3D3D3.7

  8. 2001

    SVG 1.0 lists both “lightgray” and “lightgrey”, rgb(211, 211, 211), among the web’s color keywords, as its drafts had since 2000.8

  9. 2011

    CSS Color Module Level 3 becomes a W3C Recommendation on June 7 and makes lightgray and lightgrey, #d3d3d3, official CSS keywords. Level 4 keeps both.9, 10

Sources (10)
  1. Merriam-Webster, “gray”: variants “or less commonly grey”, etymology and first known use (before the 12th century).
  2. Kelly, K. L. & Judd, D. B. (1955). The ISCC-NBS Method of Designating Colors and a Dictionary of Color Names. National Bureau of Standards Circular 553. PDF at NIST.
  3. Aubrey Jaffer, “Color-Name Dictionaries”, MIT CSAIL: NBS/ISCC centroids, 263 White, 264 Light Gray, 265 Medium Gray.
  4. X Window System releases at X.Org: X10R3 (1986), X11R1 (1987), X11R2 (rgb.txt dated 24 February 1988), X11R3 (CHANGES, October 1988) and X11R4 (merged rgb.txt of 7 December 1989); the first list is also hosted by Aubrey Jaffer as old-rgb.txt.
  5. Sexton, A. (12 March 2014). Reply on the history of the X11 colors, www-style mailing list, W3C, with the release dates and the dates of Raveling’s and Thomas’s newsgroup posts.
  6. John Thomas’s thomas.txt and Paul Raveling’s raveling.txt, with their notes quoted in Aubrey Jaffer, “Color-Name Dictionaries”, MIT CSAIL.
  7. Robert Hess, Microsoft Corporation (22 November 1996), “Named Colors by Hue”, MSDN.
  8. W3C (2001). Scalable Vector Graphics (SVG) 1.0, recognized color keyword names; earlier: SVG Working Draft, 29 June 2000.
  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: lightgray and lightgrey, #d3d3d3, 211 211 211.

Questions

What color is light gray?

A pale, neutral gray. Its code is #D3D3D3 (RGB 211, 211, 211), the CSS keyword lightgray. All three channels are equal, so it has no tint.

Is it lightgray or lightgrey in CSS?

Both work and give exactly the same color, #D3D3D3. The X11 color list that CSS took its names from always listed both spellings. Some early browsers documented only lightgrey, but every current browser accepts both.

What is the difference between light gray and gainsboro?

Gainsboro (#DCDCDC) is a little lighter, at 220 per channel against 211. Mixing light gray 20% with white gives gainsboro exactly.

What is the difference between light gray and silver?

Silver (#C0C0C0) is darker, at 192 per channel, and is one of the 16 basic HTML colors. Light gray (#D3D3D3) comes from the X11 color list.

Why is dark gray lighter than gray in CSS?

Because the names come from two lists. CSS gray (#808080) is the basic HTML color, while dark gray (#A9A9A9) and light gray (#D3D3D3) come from the X11 list, where gray was much lighter. The CSS standard itself calls the names inconsistent.

Was light gray always #D3D3D3?

No. In the first X color list, from 1986, light gray was 168 168 168 (#A8A8A8), darker than X11’s plain gray once that was added in 1988. Two revised lists in 1989 raised it to 211, and that value has stayed.

What text color works on light gray?

Dark text. Black on light gray has a contrast of about 14:1. White reaches only about 1.5:1, and CSS dim gray about 3.7:1, short of the 4.5:1 needed for body text. A gray of #595959 or darker passes.

What colors go with light gray?

Near-black or navy for text, deep teal for a calm interface, light coral or brick red for warmth, and charcoal for a dark theme where light gray is the text color.