How to edit the label color for published or not published in Admin? I tried to change the color of the text under the "Published" column of the node content listing.

I need the published text to be in green color and the unpublished text to be in red color.

In the view I have edited the output of the following field:

Administration: Nodes (Content)

Configure field: Content: Published

Rewrite Output :

&lt;span class="label label-success"&gt;[status]&lt;/span&gt;

Please check the screen shot for a better understanding.
There are some ways to do that, one may be the implementation of the following preprocess function: hook_preprocess_views_view_table. Here is a code sample:

/**
 * Implements hook_preprocess_views_view_table.
 */
function my_module_preprocess_views_view_table(&amp;$vars) {
  $view = $vars['view'];
  $results = $vars['result'];
  if ($view-&gt;name == 'my_view_administration_nodes' ) {
    foreach ($results as $row =&gt; $result) {
      $vars['field_classes']['status'][$row] .= $result-&gt;node_status ? ' published' : ' not-published';
    }
  }
}