Thanks! It works with: uintX_t red = col.ch.red uintX_t green = col.ch.green uintX_t blue = col.ch.blue