reference the current category being used in the category.php page

Try using get_queried_object():

$term = get_queried_object();
echo $term->name;

If you get nothing there, try this:

print_r($wp_query);

Everything you need is in the $wp_query global.

Hope this helps you.