diff --git a/inc/html.class.php b/inc/html.class.php
index 1ffb67618e1..1a8a702921a 100644
--- a/inc/html.class.php
+++ b/inc/html.class.php
@@ -3044,7 +3044,7 @@ static function showColorField($name, $options=array()) {
}
$field_id = Html::cleanId("color_".$name.$p['rand']);
$output = "";
- $js = "$('#$field_id').spectrum();";
+ $js = "$('#$field_id').spectrum({preferredFormat: 'hex'});";
$output .= Html::scriptBlock($js);
if ($p['display']) {