How can a RGB color value be copied from reference image or render?
Blender can copy any color value from the 3D viewport directly into the color widget.
The little icon "Sample data block from the 3D view" allows to pick a color value: