input color and change preview background