You should familiarize yourself with PHP, but if you want a default color ( assuming the code below already works ) you could do:
<?php if ( in_category( 'News' )) : ?>
<div class="green">
<?php elseif ( in_category('Blog')) : ?>
<div class="orange">
<?php else : ?>
<div class="pink">
<?php endif; ?>