VAR

CSS Color Code Generator

Generate CSS color, background-color, and custom property declarations.

color
color: #E8A33D;
background-color
background-color: rgb(232, 163, 61);
CSS variable
--color: hsl(36, 79%, 57%);

Generate CSS color code

Pick a color or paste HEX to copy CSS you can drop into a stylesheet: a color declaration, background-color in RGB, and a custom property in HSL.

Use a one-way converter if you only need a value without CSS syntax.

Everything runs in your browser.

CSS color code FAQ

What CSS does this generate?

color: #HEX; background-color: rgb(); and a --color custom property in hsl().

Is the CSS color code generator free?

Yes. Copy the declarations with no account.