Props to @samirosman for spotting the typo in the comment describing the proper luma / luminance weighting coefficient for the blue REC.709 primary. Updated the other slippery "RGB" terms to more properly reflect the assumptions.