I have heard about 18% gray tone — what is it really, and why 18% (and not 20% or some other value), and how can I make it in Photoshop?
Warning: this is a long, somewhat technical post that includes some math (but when you get past the superscripts and such, it's ultimately pretty simple math).
First of all, I should start with a simple idea of how I believe 18% was selected in the first place. I can't remember which one any more, but one of Ansel Adams' books mentions what I think is probably the origin.
About the most reflective naturally occurring substance on earth is fresh, clean snow, which reflects somewhere around 95% of the light falling on it (depending a little on exactly how fresh, how clean, how cold and/or moist it was when the snow formed, etc.)
At the opposite extreme, a surface covered in fresh, clean soot reflects about the least light of any naturally occurring substance. The range here is from about 3 to 4%. Let's again take the middle of that range, and call it 3.5%.
To can an overall average, we can then average those two. However, given such a wide range, the statisticians tell use an arithmetic mean produces a poor result (the larger number dominates almost completely, and the smaller one is nearly ignored). For numbers like this, a geometric mean is the "correct" way to do things.
The geometric mean of these works out as the square root of .95 * .035. Running that through the calculator, we get 0.1823458... Rounded to two places that's 18%.
Since the Thom Hogan article has been cited, I'll talk a bit about it. Some time ago, Thom Hogan published an article:
...that claims meters in Nikon digital cameras are calibrated for a mid-level grey that corresponds to 12% reflectance rather than the 18% grey of most standard grey cards.
Unfortunately, while the title and opening paragraph of the article are quite emphatic about 18% being a “myth”, the remainder of the article fails to provide much factual basis for this claim. Here’s what Thom gives as the basis for his statements:
In the end, he seems to have no real basis for his claims, merely a statement that “12% seems to be correct,” with no real evidence, or even information about why he considers this correct. Despite this, however, this article is now widely cited on various photographically oriented web sites (among other places) as if it were absolute and indisputable fact.
Since this issue seems to be of interest to a fair number of photographers, I decided to see if I could find some real facts with evidence to support them. The first step in this journey was to find the standard in question. Doing some searching, I found what I believe is the relevant standard. Contrary to Thom’s implication above, this is really published by the ISO rather than ANSI. This may be trivial to most, but when I was looking for the standard it was somewhat important – I put in a fair amount of work trying to find an ANSI standard that apparently does not exist. In the end, however, I found the relevant ISO standard: ISO 2720-1974, “Photography - General purpose photographic exposure meters (photoelectric type) - Guide to product specification (First edition - 1974-08-15)”.
I also found that Thom was (at least from my viewpoint) quite mistaken about prices as well – a copy of this standard costs only $65 US. This didn't strike me as "big bucks" -- in fact, it seemed like a fair price to pay for some real enlightenment (pun noted by not really intended) on the subject.
The standard confirmed part of what Thom had to say, such as calibrating meters directly from sources that emit light rather than from reflected light. Unfortunately, other parts of what Thom had to say are not quite so closely aligned with the content of the standard. For example, at the conclusion of his article, he includes a comment from “lance” that mentioned a "'K' factor", without specifying its exact meaning or purpose. Thom replied by saying: “No manufacturer I've talked to knows anything about a K factor, though, and they all speak specifically about the ANSI standard as their criteria for building and testing meters.”
As stated, this may not be exactly wrong – but it’s certainly misleading at best. In reality, a large part of the ISO standard is devoted to the K factor. Much of the rest is devoted to the C factor, which corresponds to the K factor, but is used for incident light meters instead (the K factor applies only to reflected light meters). It would be utterly impossible to follow the standard (at least with respect to a reflected light meter) without knowing (quite a lot) about the K factor.
The standard specifies that: “The constants K and C shall be chosen by statistical analysis of the results of a large number of tests carried out to determine the acceptability to a number of observers, of a number of Photographs, for which the exposure was known, obtained under various conditions of subject matter and over a range of luminances.”
The standard also specifies a range within which the K factor must fall. The numbers for the range depend on the method used for measuring/rating film speed (or its equivalent with a digital sensor). For the moment, I’m going to ignore the DIN-style speeds, and look only at the ASA-style speed ratings. For this system, the allowable range for the K factor is 10.6 to 13.4. These numbers do not correspond directly to reflectance values (e.g. 10.6 doesn't imply a 10.6% grey card as mid-level grey), but they do correspond to different levels of illumination that will be metered as mid-level grey. In other words, there is not one specific level of reflectance that is required to be metered as mid-level grey – rather, any value within the specified range is allowable.
The K factor is related to a measured exposure by the following formula:
Using this formula and a calibrated monitor, we can find the K factor for a specific camera. For example, I have a Sony Alpha 700 camera and a monitor that’s calibrated for a brightness of 100 cd/m2. Doing a quick check, my camera meters the screen (displaying its idea of pure white) with no other visible light sources, at an exposure of 1/200th of a second at f/2. Running this through the formula, gives a K factor of 12.5 – just above the middle of the range allowed by the standard.
The next step is to figure up what level of “grey” on a card that corresponds to. Let’s do that based on the sunny f/16 rule, which says a proper exposure under bright sunlight is f/16 with a shutter speed that’s the reciprocal of the film speed. We can mathematically transform the formula above to:
Let’s work things out for ISO 100 film:
The .01 and 100 cancel (and they will always cancel since the rule is that the exposure time is the reciprocal of the film speed), so this simplifies to: L = 256K.
Working the numbers for the lowest and highest allowable values for the K factor gives 2714 and 3430 respectively.
Now, we run into the reason the ISO standard specifies light levels rather than reflectance of a surface – even though we’ve all seen and heard the sunny f/16 rule, the reality is that clear sunlight varies over a considerable range, depending on season, latitude, etc. Clear sunlight has brightness anywhere from about 32000 to 100000 lux. The average of that range is about 66000 lux, so we’ll work the numbers on that basis. This has to be multiplied by the reflectance to give a luminance – but the result from that comes out in units of “apostilbs” rather than cd/m2. To convert from apostilbs to cd/m2, we multiply by 0.318:
We already have the values for L that we care about, so we’ll rearrange this to give the values of R:
Plugging in our minimum and maximum values for I, we get:
Then we plug in the two values for L to define our allowable range for R:
In other words, between the range of brightness of the sun and the range of K factors allowed by the ISO standard, a reflectance anywhere from about 8.5% to about 34% can fall within the requirements of the standard. This is obviously a very wide range of values – and one that clearly includes both the 12% Thom advocates and the 18% of a typical grey card.
To narrow the range a bit, let’s consider just the arithmetic and geometric mean of the range of brightness from the sun: 66000 and 56569 lux respectively. Plugging these into the formula for the range of possible reflectance values gives:
The results from those are:
An 18% grey card is close to one end of this range, but still falls within the range. A 12% grey card falls outside the range; we have to assume an above-average light level for it to work out. If we average the four numbers above together, we get a value of about 16% grey as being the "ideal" – one that should work out reasonably well under almost any condition.
This is the amount of light used by most cameras for determining exposure. This was chosen (instead of 20%, etc) because, on average, most "photographs" used by average photographers tend to work out to roughly the same amount of light exposure as solid, 18% gray.
If, however, you're shooting something that has a lot of white, or a lot of dark, you're exposure will be off. For example, if you take a photo of a large white building, you'll probably want to adjust your exposure to compensate, since the default will target 18% gray, see all of the white, and lower your exposure (to make the entire picture average the same light content as 18% gray). You'll want to have a higher-than-default exposure to compensate.
You can use a solid card that's colored the appropriate gray tone to help compensate for this in your camera. Many cameras have exposure compensation functions that will let you configure your camera by pointing it at something with the right amount of color saturation.
If you want to make your own card, you'll want to saturate the card with 18% grey. This will work out to a solid fill (in RGB) of about 46 for R, G, and B. Just be aware, however, that most printers will distort your color somewhat -so when you print, you may want to check the results against your original.
Think of the tonal scale from black to white. Instead of an even gradient, break it into 11 parts (called zones). Zone 0 is solid black with no detail. Zone 10 is solid white with no detail. Zone 5 in the middle is 18% gray. Google "zone system" for more info.
It's very likely that the gray tone you actually care about is 12% as this is what camera meters are most probably calibrated to measure. See Thom Hogan's article about gray cards.
The cards are designed to reflect about 18% of the incoming light, which to a human appears half way between max white and darkest black and happens to be a fairly good guess at the average reflectance of typical natural scenes - L*50 as has been mentioned correctly above.
The next question, and where the 12% comes from, is this: If we meter off the 18% gray card, which to a human appears as mid-grey but really has about 18% the intensity of maximum diffused white, what value should this information be recorded at in our raw files. Remember that film has a gentle rolloff in the highlights, while digital has an absolute cutoff. So they decided to give a half stop of extra headroom to safeguard the highlights (possibly specular) and, if desired, provide a half stop rolloff. It was decided that luminance coming from a gray card reflecting 18% of incoming light, aka L*50, aka mid-gray should be actually recorded at 18%/sqrt(2) = about 12.8% of max diffused white - in the linear raw file.
As to what happens to the data after that, it becomes very messy and the standards have really made a mess of it, imho.
18% grey is the shade that through the lens (TTL) metering base their exposure figures from -- you can also use it to check white balance if you want to calibrate for a shoot.
When you haven't got one to hand, you can usually substitute with an area of concrete, if it's in the scene or at least under similar lighting circumstances.
For the most part, standards aren't designed to explain theory. Their purpose is to describe how to do something, determine film speed, calibrate an exposure meter, etc, and they are based on research which can be found in scientific papers in scientific journals. Three papers that describe the theory of meter calibration are:
Stimson, Allen, An Interpretation of Current Exposure Meter Technology, Photographic Science and Engineering, vol 6, No 1, Jan-Feb 1962.
Scudder, Nelson, Stimson, Re-evaluation of Factors Affecting Manual or Automatic Control of Camera Exposure, Journal of the SMPTE, vol 77, Jan 1968.
Connelly, D, Calibration Levels of Films and Exposure Devices, The Journal of Photographic Science, vol 16, 1968..
The OP asked: why does the standard grey card have a reflectance of 18%?
The short answer is that a significant number of manufacturers calibrated their light meters in the belief that a standard scene averages 18% reflectance.
This information was taken from their light meter manuals. Follow the links to see my references.
The following are believed to work to 12% reflectance, though I was unable [to confirm this. Information derived from the light meter Wikipedia article. See also this article from photo.net
While I have no information for Olympus.
So the next question becomes: why do some manufacturers choose 18% and others choose 12%?
The answer can be found in ISO 2720, which states that:
This means that each manufacturer is free to determine by measurement what the average grey level of the standard scene is. Given that they have used independent measurements of the calibration constants (K and C) it is surprising (and gratifying) that there is so much agreement.
K and C are the calibration constants for reflected light and incident light meters.
Now it turns out that the two groups of manufacturers, though their own testing, have arrived at different values of K and C. And these values, through the simple application of the laws of physics, result in either 18% or 12% reflectance for the standard scene.
For the interested, the formulas can be found in the Light Meter Wikipedia article, so I won't repeat them here.
So what is the 'correct' value? 18% or 12%?
a) you don't have much choice but to work with the value your manufacturer has chosen.
The bottom line is that the 18% or 12% values for average reflectance were arrived at by measuring the average reflectance (photographically) of a large number of scenes. So these are numbers that were arrived at experimentally and it is not surprising that there are some differences.
Is there any way to arrive at the number theoretically?
In the Lab colour space L* (brightness) can range from 0 (black) to 100 (diffuse white). I choose Lab colour space because it is designed to approximate human vision. If one makes the assumption that average brightness falls mid-way between these two extremes then one has a starting point of L* = 50.
Now, using Bruce Lindbloom's excellent CIE Color Calculator, we can calculate the corresponding luminance and the sRGB pixel values. This gives values of 18.4% luminance (Y on the CIE XYZ scale) and 118.9 pixels for sRGB.
Of course, to say that the average scene's average brightness is mid-way between white and black is a big assumption and over simplifies the real world. One really needs some kind of experimental basis for this assumption. But it is certainly interesting that this calculation arrives at a result close to that of many manufacturers.
On how to print an 18% card, with no theory or rationale as to why 18 not some other number...
Following any theory or advice on setting RGB values in a graphics program isn't reliable. Monitors and printers are designed to make graphics look good and fall short of scientific accuracy. Even if your whole system is calibrated - well, I never quite trust such things to be accurate, especially not for physical optical properties of printouts.
Ultimately, you'll have to make a big gray rectangle of some chosen RGB value and print it out. How to know what RGB value?
First use your graphics program to print a fine grid of black squares on an empty white background. Make the squares cover 18% of the area. The gap between squares should be 1.59 times the width or height of the squares. Make this grid small but large enough to have good control over accurate geometry, and make it cover a whole page.
With good dark ink in the printer, the white will be almost 100% reflective and the black almost 0% (but nothing is perfect) so the overall reflectance averages out to 18%. Photograph this black & white printout out of focus, letting the camera do the averaging.
Guess an RGB value, make the whole page that value of gray and print it out. Photograph it, out of focus, next to your black and white grid. Based on whether it's lighter or darker than the grid, refine your RGB guess. Repeat until they match.
Be careful to have uniform lighting and avoid vignetting effects in the optics.
To summarize an answer.
From white to black, the eyes see a range of greys. Because the eyes see logarithmic (and the ears hear logarithmic), what the eyes looks like the middle - this is actually not contains 50% black + 50% white, but 18%.
The middle point for the eye contain 18% Black On White.
To make this on Photoshop you fill a white background with 18% black pattern. So in photoshop if you fill with half black a white background, you do not get the middle gray that eye can see.
Many years ago I was made a page base on that 18% rule to calibrate the monitor. The different with other calibrations was that, I use 18% to fill the background with black and not 50%
I still have this gamma calibration page online. Blur your eyes and try to make the circle inside to disappear.
"18%" is the amount of light reflected by the midpoint of black and white (Adams' Zone V). The precise convention of 18% (not 17%, 19%, etc) comes from the graphics industry (probably - see links).
In photography, it has two main uses:
However, in the largest typeface possible here:
18% grey is not what your meter is calibrated to.
Really and truly.
This is a persistent myth, but is not actually the case. Your in-camera meters are calibrated closer to 12% grey, which is a difference of approximately half a stop. This is the ANSI standard.
There's a practical explanation by Thom Hogan here: http://www.bythom.com/graycards.htm
And for those who prefer to deal in foot-candles and foot-lamberts, a mathier version here: http://www.richardhess.com/photo/18no.htm
That's a shocking revelation, what should I do?
Probably nothing. Most grey cards sit unused in the closet. Even in use, a half stop is pretty negligible in most situations. So if you're happy how things are, continue!
If this difference matters to you, the Hogan article has practical advice on a sidebar, excerpted here: