Client Script to change colour of related list item fields in canvas view

Client Script to change colour of related list item fields in canvas view

Hi,
We have a custom module 'provider numbers', related to accounts.  Each record in the related list has a 'State' field which we would like to colour depending on the value in our Accounts canvas view (see attached).  As there is canvas rule limit of 5 rules per field, I thought a client script would be the go, but haven't figured it out.  Is there a way I can write a client script to change the colour of the 'state' field inside the related list tab for our custom module in the accounts canvas view?  If so, could I get a sample script?
Thanks!