calculate brightness() only for color values; fixes #1599

Fixed https://github.com/chriseppstein/compass/issues/1599.