Extract hex colors from image field for taxonomy vocabulary
If your happy to use a custom module then something a simple as this would do the trick:

$colours = db_query("SELECT field_my_colour_field_value FROM field_data_field_my_colour_field")-&gt;fetchCol();