Skip to content

HEX / RGB / HSL Converter

Convert a CSS color from HEX, RGB or HSL to all three formats and preview the resulting color.

Input

Result

Type or paste on the left — the result updates as you type.

Accepts #RGB, #RRGGBB, rgb(0, 128, 255) or hsl(210, 100%, 50%). Alpha channels and named colors are unsupported.

Up to 100,000 UTF-16 units per input and 1,000,000 per result. See the supported formats and examples below.

Format references

Tool page updated: