How is color converted to grayscale in PDF using the luminance formula?
Color-to-grayscale conversion in PDF uses a luminance-weighted formula that accounts for human visual perception of different color wavelengths. The standard formula is the ITU-R BT.601 luminance equation: grayscale = (0.299 × R) + (0.587 × G) + (0.114 × B), where R, G, B are channel values from 0–255. The weighting reflects human eye sensitivity: the eye is most sensitive to green (58.7%), moderately sensitive to red (29.9%), and least sensitive to blue (11.4%). Practical results: pure red (#FF0000) converts to approximately 30% gray; pure green (#00FF00) converts to approximately 59% gray; pure blue (#0000FF) converts to approximately 11% gray (very dark). The consequence: two colors that appear equally prominent in color may convert to very similar grayscale values — red and green text that are easily distinguishable by hue become nearly indistinguishable shades of gray without adjusting their brightness.