To avoid another check up there:
```coffeescript
rgb.push if ((rgb[0] * 0.299) + (rgb[1] * 0.587) + (rgb[2] * 0.114)) > 125
  'black'
else
  'white'
```