Color Converter

Enter a Color

HEX#FF5733
RGBrgb(255, 87, 51)
RGBArgba(255, 87, 51, 1)
HSLhsl(11, 100%, 60%)
HSLAhsla(11, 100%, 60%, 1)

Paste any of these into CSS. Click "Copy" to copy a value.

This tool works entirely in your browser. Nothing is sent or stored on any server.

Convert colors between HEX, RGB, RGBA, HSL, and HSLA with a live preview. Paste any format or use the native color picker.

Everything runs locally in your browser — nothing is sent to a server.

Frequently Asked Questions

How do I convert HEX to RGB manually?

Split the hex value into three pairs of digits and convert each pair from hexadecimal to decimal. For example, #FF5733 splits into FF, 57, and 33, which become rgb(255, 87, 51).

What is HSL used for?

HSL expresses a color as hue, saturation, and lightness, which matches how people think about colors. It is ideal for programmatic adjustments — for example, generating a lighter or darker shade of a brand color by changing only the lightness component.

Which CSS color format should I use?

All formats render identically. Hex is the most compact, rgb()/rgba() is the most widely readable, and hsl() is the most convenient when you need to derive color variations in code. Modern CSS also accepts 8-digit hex like #FF5733FF for alpha.