In brief
In the mature pear, the part next to the stem slightly lends itself to pressure. Color alone is not a universal criterion for all varieties.
Useful to know
To check maturity on a pear lightly press close to the stem. The ripe fruit should lend itself a little. The university guide states green, yellow or red coloration according to the variety, so a single color scheme is not enough. [1]
When buying, avoid bruised fruit. For presaturation, the source offers a paper bag at room temperature, and after ripening - a stowage in the refrigerator. Before eating, the pear is rinsed under running water. [1]
A practical application is to separate the fruits according to the time of use. Those who are already ripe, plan for the nearest salad or portion; the firmer let them reach the appropriate state as directed.
Do not press hard on the whole fruit to "check" every part of it. The idea is a careful assessment, not an injury. For a salad, chop the pear immediately for the required amount after you have decided what texture you are looking for.
Sources
For further detail and to check the information: