The instructions are clear enough... Empty the contents into exactly the right geyser on Frigost Island to create a rainbow whose opposite end may well indicate the location of a hypothetical buried treasure which may or may not have already been found. The potion's secondary use is as a drink which will teleport you to the treasure hunt building.