public function toHex($v) { $ret = '#'; foreach ($v as $c) { $c = Avada_Less_Functions::clamp(avada_Less_Parser::round($c), 255); if ($c < 16) { $ret .= '0'; } $ret .= dechex($c); } return $ret; }