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.

  .red-text {
    color: #FF0000
  .green-text {
    color: #00FF00
  .dodger-blue-text {
    color: #2998E4
  .orange-text {
    color: #FFA500

<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>

I’ve edited your post for readability. When you enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.


Remember that css property/value pairs must end in a special character to separate the properties from each other.