src/CanonicalNames.php
public static function hex(string $name = null)
    {
        if ( empty($name) ) {
            return static::$hexmap;
        }

        return static::$hexmap[$name] ?? false;
    }
public static function hex(string $name = null)
    {
        if ( empty($name) ) {
            return static::$hexmap;
        }

        return static::$hexmap[$name] ?? false;
    }
public static function hex ( string $ name = null ) { if ( empty ( $ name ) ) { return static :: $ hexmap ; } return static :: $ hexmap [ $ name ] ?? false ; }
Returns the hexadecimal CSS color given the canonical name.

@param string Optional canonical color name.

@return mixed Default returns array of all canonical keys and hex values.
Given a name, returns string hexadecimal color or false if color
does not exist.
Returns the hexadecimal CSS color given the canonical name .