src/Color.php
public function toHEX()
    {
        list($red, $green, $blue) = $this->toRGB();

        return strtoupper(sprintf('#%02x%02x%02x', $red, $green, $blue));
    }
public function toHEX()
    {
        list($red, $green, $blue) = $this->toRGB();

        return strtoupper(sprintf('#%02x%02x%02x', $red, $green, $blue));
    }
public function toHEX ( ) { list ( $ red , $ green , $ blue ) = $ this -> toRGB ( ) ; return strtoupper ( sprintf ( '#%02x%02x%02x' , $ red , $ green , $ blue ) ) ; }
Outputs the color using the HEX format.

@return array HEX representation of the color
Outputs the color using the HEX format .