
The Color Palette
A Wild Dance of Light and Shadow
Behind the magical world of CSS lies an arsenal of colors that would make even the boldest alchemist envious. With every click on the color picker, you mix like a wizard brewing potions, creating color models that let your website shine in an entirely new light. Each color carries its own little magic, with the power to transform the mood of your site — be it somber, cheerful, or somewhere in between.
With a touch of skill, you can harmoniously combine colors. Every decision you make is like a brushstroke on a canvas, not only touching the hearts of your visitors but also ensuring everything is effortlessly readable. Nothing captivates visitors more than a well-placed burst of color.
The Magic of CSS Color Models
A Guide for Aspiring Artists

Hexadecimal
Hexadecimal (Hex)
An ancient color spell composed of six mysterious characters made of numbers and letters. Every Hex color begins with a #, followed by six characters that capture the magic of Red, Green, and Blue. FF brings radiant brilliance, while 00 summons shadowy darkness.
.primary {
color: #FF0000;
}
A red text color
Hexadecimal with Alpha
An advanced version of the Hex spell that introduces transparency. Two additional characters at the end define the level of opacity, ranging from 00 (completely invisible) to FF (fully opaque). Perfect for subtle visual effects where colors softly fade in or out.
.primary {
color: #FF573380;
}
A semi-transparent orange

HTML Color Names
HTML-Colors
The most common colors, controlled as if by magic with a single word. These named colors are ideal for your first magical forays into web design. They are easy to remember and provide a quick way to transform your website’s appearance. A complete list can be found at the W3Schools “School of Wizardry
.primary {
color: red;
}
A red text color

RGB
RGB (Red, Green, Blue)
A powerful spell that mixes the light of red, green, and blue in precise intensities to create an almost infinite palette of colors. Each component is represented by a number from 0 to 255, corresponding to the intensity of red, green, and blue: RRR GGG BBB.
.primary {
color: rgb(255, 87, 51);
}
A vibrant orange tone
RGBA (Red, Green, Blue, Alpha)
The RGBA spell adds a fourth component to the RGB model: the alpha channel. This controls the transparency of your colors, allowing them to shimmer or fade when needed. The alpha value ranges from 0 (completely invisible) to 1 (fully opaque).
.primary {
color: rgba(255, 87, 51, 0.5);
}
A semi-transparent orange

HSL
HSL (Hue, Saturation, Lightness)
A sophisticated color spell that defines colors based on their hue, saturation, and lightness. The hue is mapped on a magical circle from 0 to 360 degrees, while saturation and lightness determine the color’s intensity and brightness in percentages.
.primary {
color: hsl(14, 100%,60%);
}
Once again, the same vibrant orange tone
HSLA (Hue, Saturation, Lightness, Alpha)
Just like RGBA, the HSLA spell adds the alpha channel to the HSL model. This gives your colors depth and mystical transparency, making them appear even more vivid and alive.
.primary {
color: hsla(14, 100%, 60%,0.5);
}
A semi-transparent orange