A new law that will help landowners to keep unwanted hunters off their properties also will help hunters to avoid high penalties for violations of another new law banning “hunting trespass.”

The “purple paint” law was passed Wednesday, three days before the first Saturday opening of the statewide firearm deer season. It will go into effect following the 2019-20 hunting seasons.

Under the law, landowners can identify property boundaries with lines of purple paint on trees. The legislation was part of a series of compromises that resulted in bipartisan support for three days annually of Sunday hunting, which was signed into law Monday by Gov. Tom Wolf.

Another accommodation created the hunting trespass law, which elevates trespassing while hunting to a primary offense punishable by higher fines than levied for general trespass and could result in prison for repeat offenders.

“Purple paint” will not apply in Allegheny and Philadelphia counties.