Put in order · HTML and CSS course · Module 9: Modern CSS
Evolution of Color Management in CSS
Order the ways of defining colors in CSS from oldest to newest:
Items to put in order
- CSS Custom Properties (var(--primary-color))
- HEX (#D4AF37) and RGB (rgb(212, 175, 55))
- Named colors (red, blue, gold)
- HSL (hsl(45, 65%, 52%)) - hue, saturation, lightness
- color-mix(in srgb, blue 70%, white) - color mixing
You can check the correct answer by solving this task in the CodeWorlds game.