You gotta add the connect portion of your script, and change tablename to whatever your table's name is, but this little bit should help you create an array called colors where the specific color name is both the key and value.
$getcolors = mysql_query("SELECT color FROM tablename");
$colors = array();
WHILE($gotcolors = mysql_fetch_array($getcolors)){
$colors[$gotcolors['color']] = $gotcolors['color'];
}
print_r($colors);
If this isn't what you meant, please post with more details.