Fix typo in luminance calculation

Accidentally swapped red and green factors.