# How do I compute the luminance of a pixel?

I have a color (say $R=100, G=150, B=130$). How do I compute its intensity?

Do I just sum up all three components? Or are the colors not evenly weighted?

luminance = (r * 0.3) + (g * 0.59) + (b * 0.11)