<div class="demo">
<p class="named">Named Color</p> <!-- aqua -->
<p class="hex">Hex Color</p> <!-- #00FFFF -->
<p class="rgba">RGBa Color</p> <!-- rgba(0, 255, 255, .5) -->
<p class="hsla">HSLa Color</p> <!-- hsla(180, 100%, 50%, .5) -->
</div>
.named { color: aqua; }

.hex { color: #00FFFF; }

.rgba { color: rgba(0, 255, 255, .5); }

.hsla { color: hsla(180, 100%, 50%, .5); }


/* Styling for Pen, unrelated to color */

body { 
  font-family: 'Abril Fatface', serif;
  font-size: 2.5em;
}

p {
  min-width: 50%;
  text-align: center;
  margin: .5em 0;
  text-transform: uppercase;
}

.demo {
  width: 50%;
  margin: 0 auto;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.