Design and images

HEX, RGB and HSL color converter

Convert colors between HEX, RGB and HSL, pick colors with the color picker and generate a shade scale ready to copy as CSS variables.

Contrast vs white
—
Contrast vs black
—

Shade scale (click to copy)

Harmonies

Everything runs in your browser. Nothing is sent to our servers.

How it works

Type a color in any format (#3b82f6, rgb(59 130 246), hsl(217 91% 60%) or a CSS name such as "tomato") and get all its equivalents instantly.

The tool also generates a 10-step scale from lightest to darkest and exports it as CSS variables, ideal for building a brand palette or a design system.

Frequently asked questions

What is the difference between RGB and HSL?

RGB defines a color by its amounts of red, green and blue. HSL defines it by hue, saturation and lightness, which makes lighter or darker variants easier to create.

What does an 8-digit HEX mean?

The last two digits are the opacity (alpha). For example, #3b82f680 is the same blue at 50% opacity.

Need a custom tool for your business?

Tell us about your case and in 30 minutes we'll give you a clear diagnosis: what's going on, what to do first and what it might cost. No strings attached.

Get a free assessment Message us on WhatsApp

Reply within 24 business hours