<?php
function my_inline_styles()
{
?>
<style type="text/css">
<?php if(is_front_page()): ?>
#headercontainer {
background-color: /*Some color here*/;
}
<?php else: ?>
#headercontainer {
background-color: /*Some other color*/;
}
<?php endif; ?>
</style>
<?php
}
add_action("wp_head","my_inline_styles");
?>