CSS color property is used to set or change text color of any html element.

<html>
<head>
<style type="text/css">
#dv{
    color:green;
}
</style>
</head>
<body>
<div id="dv">
Hello world
</div>
</body>
</html> 

With color property, we can specify colors in different forms like:

  1. color name
  2. Hex Value
  3. RGB Value

Complete color reference