Convert hex color to RGB values in PHP
$hex = "#ff9900"; list($r, $g, $b) = sscanf($hex, "#%02x%02x%02x"); echo "$hex -> $r $g $b";
$hex = "#ff9900"; list($r, $g, $b) = sscanf($hex, "#%02x%02x%02x"); echo "$hex -> $r $g $b";
Why bother with a random green when you can choose to be a #BADA55!
Basically, women were slightly more liberal with the modifiers, but otherwise they generally agreed (and some of the differences may be sampling noise). The results were similar across the survey—men and women tended on average to call colors the same names.
Each user was shown a random color and asked to type in a name. We asked people provide the most generic name possible, dropping things like modifiers (blue instead of light blue). Instead of using the entire RGB spectrum (millions), we pruned the color set to 216 «web safe» colors. This helped ensure every color had many responses. We left it online for a week or so and collected 6,276 color responses.