Back to Blog
generators·

HEX, RGB and HSL: CSS Colour Formats Explained

CSS accepts hexadecimal, RGB, HSL and other colour formats. See what each means, how to convert between them, and when each works best in a stylesheet.

csscolourshexrgbhslweb-designfrontend

Try it yourself

Put these concepts into practice with the free online tool on DevGizmo.