diff --git a/src/Faker/Provider/Color.php b/src/Faker/Provider/Color.php
index 468aa4c0..16aa9934 100644
--- a/src/Faker/Provider/Color.php
+++ b/src/Faker/Provider/Color.php
@@ -47,7 +47,7 @@ class Color extends Base
      */
     public static function hexColor()
     {
-        return '#' . dechex(mt_rand(1, 16777215));
+        return '#' . str_pad(dechex(mt_rand(1, 16777215)), 6, '0', STR_PAD_LEFT);
     }
 
     /**