Partial rbg to xyz conversion