chars are unsigned when computing luminance