COLORREF cr = RGB(64,128,196); // the original COLORREF BYTE red = GetRValue(cr); // the red value in the range 0-255 COLOR16 red16 = red * 256; // multiply to convert it to the range of COLOR16