In sewing, piping is a type of trim or embellishment consisting of a strip of folded fabric so as to form a "pipe" inserted into a seam to define the edges or style lines of a garment or other textile object. Usually the fabric strip is cut on the bias. It may be made from either self-fabric (the same fabric as the object to be ornamented) or contrasting fabric, or of leather.
Piping is used extensively on the cassocks of clergy in western rite Christianity, particularly in the Roman Catholic and Anglican churches. Coloured piping is often used on black cassocks to indicate rank.
In the Roman Catholic church, cassock piping is: black for priests; purple for chaplains of His Holiness; amaranth red for bishops, protonotaries apostolic, and Honorary Prelates; and scarlet red for cardinals.
In the Anglican church piping is not used universally, many clerics preferring a plain cassock of solid colour. The most common cassock piping in the Anglican church is scarlet red piping for cathedral deans and canons, and for archdeacons; additionally bishops may wear black cassocks with amaranth red (usually called purple) piping.