HD 163151 is discovered to be a new variable as a part of a W UMa system. In this paper we present complete uvby light curves. Additional Crawford H-beta and Johnson BV data are also obtained. A detailed photometric analysis based on these observations is presented using the WD code. Several tests have been carried out concerning mass ratio and effective temperatures. The best fitting was achieved with q = 0.27 and T-1 = 6450 K (fixed) and T-2 = 6130 K. Moreover, the light curves show evidences of spots in one of the components.