color: add new method that returns color as a number in RGB space