Click to copy text?

Hi there,

I am creating a set of brand guidelines for a website. As part of this, I am defining the colours used with the Hex being the main option. I am wondering if there is a way to have the hex colour copied, ready to be pasted somewhere by clicking on it?

Any advice would be appreciated.