bare-bones color luminance functions