Check out example codes for "storing RGBA in mysql db". It will help you in understanding the concepts better.

Code Example 1

UInt32 rgba  = color.R | ( color.G << 8 ) | ( color.B << 16 ) | ( color.A << 24 );
 Color  color = Color.FromRgba( rgba & 0xFF, ( rgba >> 8 ) & 0xFF, ( rgba >> 16 ) & 0xFF, ( rgba >> 24 ) & 0xFF );

Learn ReactJs, React Native from akashmittal.com