Detail View Field Value Color Options

Using CSS or JS whats the best way to target a DETAIL VIEW Field value to change the text color - ie If the FIELD NAME is MATH TEST and the value for it is PASSED - changed the PASSED to GREEN and value of FAILED to RED?