When working with colors in CSS, it's important to know that all colors displayed on the screen are produced by combining Red, Green and Blue also known as the RGB color spectrum.
We can set colors in CSS using color names, RGB color codes, or Hexadecimal values.
This html document provides an example of all three.
Our style sheet has three rules, that will apply font coloring to any
<h1> style rule uses a color name, red.
<h2> style rule, uses a hexadecimal code, which represents light blue.
<h3> style rule, uses an rgb color code that represents a light purple color.
We've referenced each of these rules in our html
We can see in our browser, that each style rule has been successfully applied.
In order to get color codes and hexadecimal values, we can use a number of free online tools.
colorpicker.com, is one such example.
Here we can browser through a color palette and retrieve the corresponding code values.