check length of (r, g, b) tuple