From your observation certain substances show the same colour. Acidic solutions show red colour, Basic solutions show blue while Neutral solutions show green colour.The flower extract acts as an acid-base indicator.
Therefore an indicator is a substance that shows a definite colour in Acid or Basic solution.