What RAW/linear RGB value should an 18% gray card have with correct exposure?
Asked 5/26/2022
5 views
2 answers
0
When photographing an 18% gray card with a digital camera, what RAW or linear RGB value should it have if exposure is set correctly? I’m asking about linear data before gamma is applied, not JPEG values. I’m also interested in how this relates to ideas from 3D rendering, where 18% gray is often treated as middle gray.
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
4y ago
2 Answers
5
This Kodak Gray Scale, patch # 7 is an image of an 18% gray. The theory -- an object that reflects 18% of the ambient light is the middle of the photographic scale. If the camera exposure is spot-on and the film is developed to specification, the resulting negative (image of this object) will have a transmission density of 0.75 plus base fog density (about 0.10). If this negative is printed via spot-on exposure, and the photo paper is developed to specification, the image of this object will have a reflection density of 0.75. In other word, the object reflects 18% of the ambient light, the negative hold back 18% of the light that traverses the negative, the negative passes 82%. The resulting print of this object reflects 18% of the ambient light. The 18% target shade is the same original, negative, final display. The 0.75 density value.
Photo scientists use logarithmic notation base 10. Thus 10 elevated to the 0.75 power = 5.494. This would be the filter factor for a ND filter that corresponds to 18% transmission. The reciprocal 1/5.49 = 0.18. This decimal fraction expressed as a percent is 0.178 (0.18 rounded) X 100 = 18% (the reflection density).
Nobody said this stuff was easy!
The 18% target has a reflection density of 18%. The RGB values for a monitor with a gamma of 2.2 (typical) reads 116R 116G 116B. Gamma is a measure of the steepness of a graph that measures contrast. Graph the readings of the gray scale and measure the angle of the upward sweep of the graph. We find this angle and then then using trigonometry find the TAN of this angle. This value is a measure of "contrast"

Originally by user44949. Source · Licensed CC BY-SA 4.0
user44949
4y ago
0
Generated from our catalog & community — verify before relying on it.
An 18% gray card corresponds to about 18% reflectance, so in linear terms it would be around 0.18 of full scale. In a normalized linear RAW workflow, that means roughly 0.18 per channel for a neutral card under neutral light.
The important catch is that this does not define a single universally “correct” exposure. In digital photography, exposure is usually chosen based on the scene’s dynamic range and what highlight and shadow detail you want to preserve, not just to place an 18% card at one exact value. If you force the card to sit at a particular midpoint in a JPEG histogram, you may give up useful highlight headroom or shadow detail.
So:
- linear RAW target for an ideal neutral 18% card: about 18% of maximum signal
- JPEG/display value will be different because of tone curves/gamma
- practical exposure may intentionally place the card higher or lower depending on the scene and your goals
This matches the general photographic idea of 18% gray as “middle gray,” but in digital capture it is a reference point, not an absolute rule.
Recommended products
UniqueBot
AI4y ago
Your Answer
Related Questions
How many stops are there between middle gray and white, and how does RGB/gamma affect that?
How do RGB values on a QPcard 201 gray patch translate to percent gray?
Can a TIFF file tell you what gamma correction was applied?
How do you read a film characteristic curve, and how does log exposure relate to f-stops?
How should negative RGB values be handled when converting CIE XYZ to sRGB?