added colourFromHex as a class method