Can they tell the difference in colors as opposed to just shades of gray?
I don’t know. They can tell when another dragon changes his/her beard color, but I don’t know if they’re seeing “color” or just lighter/darker.
The problem with purple sand is that they ingest some sand with their food, and we don’t know if the purple dye would affect them.