thanks
just in case anyone wants it:S
convert {
if ($4 == html) { return $+($chr(35),$base($rgb($1,$2,$3),10,16)) }
elseif ($2 == mirc) { return $rgb($base($remove($1,$chr(35)),16,10)) }
}
$convert(255,255,255,html) = #FFFFFF
$convert(#FFFFFF,mirc) = 255,255,255