getValue()
returns the code of a selected color in the Hex format
getValue(): string;
Returns:
A string with the code of a selected color in the Hex format.
Example
colorpicker.setValue("#BDF0E9");
const color = colorpicker.getValue();
// -> "#BDF0E9"