From a brief internet search Bromophenol Blue under goes a color change in the pH range 3.0-4.6 . Bromothymol Blue under goes a color change in the pH range 6.0-7.6 . Soap is basic , above pH 7 . Titrating soap with strong dilute acid produces free fatty acids and inorganic salt , which should be acidic . Acidic pH is less than 7 . So a pH indicator to use in testing soap content would be bromothymol blue , I think . If I recall correctly the sample is dissolved in dry isopropyl alcohol then dilute hydrochloric acid is added with stirring till the Bromothymol blue changes color , from basic to acidic . Then the quantity of hydrochoric acid added to acidify the alcohol is calculated . An equivalent amount of soap expressed in moles is present . The mass of the soap present can be calculated from the average molecular weight of the soap times the number of moles of the soap in the sample . With more calculation knowing the mass of soap present , I could get parts per thousand or parts per million in a litre of biodiesel . It has been some time since I did this titration and calculations for it .