Use the hex code to mix colors

So I added the hex code to match the colors it wanted and it gave me a go. the only problem I have now is that it’s telling me to use the hex code when I already have.

<style>
  .red-text {
    color: #FF0000
  }
  .green-text {
    color: #00FF00
  }
  .dodger-blue-text {
    color: #2998E4
  }
  .orange-text {
    color: #FFA500
  }
</style>

<h1 class="red-text">I am red!</h1>

<h1 class="green-text">I am green!</h1>

<h1 class="dodger-blue-text">I am dodger blue!</h1>

<h1 class="orange-text">I am orange!</h1>