Create a color object and convert to rgb, rgba or hex string and WebGL color array. https://vincent7128.github.io/color-object/