RewriteEngine On
RewriteBase /color-icon/

RewriteRule ^hex/(.+)$ index.php?hexcol=$1 [NC,L]