Calculate color distance by RGB