Problem setting color

Hello, I am facing a problem, Could I use #c8b117 this kind things setup color in OF? It seems easer than R,G,B? But I am not sure. I am beginner of OF.

Try this:

  ofColor c = ofColor::fromHex(0xFFFF00); // c is yellow.

Thanks for you help~~~