You can use the colorpicker input field to allow users to select the color with a hex value. See the below example about how you can use colorpicker input field.
ExampleCopy to Clipboardarray(
'type' => 'colorpicker',
'heading' => esc_attr__( 'Select Color.', 'fusion-builder' ),
'description' => esc_attr__( 'This field allows you to select the color with a hex value.', 'fusion-builder' ),
'param_name' => 'text_color',
'value' => '',
)x 1array(23 'type' => 'colorpicker',45 'heading' => esc_attr__( 'Select Color.', 'fusion-builder' ),67 'description' => esc_attr__( 'This field allows you to select the color with a hex value.', 'fusion-builder' ),89 'param_name' => 'text_color',1011 'value' => '',1213)Parameters type
( string ) input type. heading
( string ) Setting title. description
( string ) Short description about the setting field. param_name
( string ) Attribute name to be used in the shortcode. value
( string ) Default color.