Assigning colors using HEX code

Hello,

It would be extremely helpful to have an option to assign colors using HEX code. At the moment colors can only be assigned using RGB code. The problem is RGB method doesn’t take into account gamma correction, so colors are distorted. As a result, Python users just can’t assign correct colors (e.g. to materials).

Is it a difficult feature to implement?

About gamma correction, I think that the subtype attribute of the FloatVectorProperty can use gamma corrected values when set to “COLOR_GAMMA”.
https://docs.blender.org/api/blender2.7/bpy.props.html?highlight=floatvectorproperty#bpy.props.FloatVectorProperty