Color Code Converter

Enter a color in any format — #ff6600, rgb(255,102,0) or hsl(24,100%,50%) — and get all three notations plus a swatch.

Supported notations

Accepts 3- and 6-digit hex (with or without #), rgb()/rgba() comma or space syntax, and hsl()/hsla(). Output always emits all three canonical forms.

Frequently asked questions

Alpha channel?

Parsed but not shown — the converter targets opaque colors.

Named colors?

Not supported — use hex/rgb/hsl notation.

Rounding?

HSL hue rounds to whole degrees; RGB channels to whole integers.