Free Color Converter — HEX, RGB & HSL
Pick a color or paste a value to convert instantly between HEX, RGB, and HSL.
How to use / FAQ
What are HEX, RGB, and HSL for?
HEX and RGB describe a color by its red, green, and blue channels and are what most CSS and design tools expect. HSL uses hue, saturation, and lightness, which makes it easier to nudge a shade lighter or more muted by hand. To check whether two colors are readable together, run them through the WCAG contrast checker.
Which formats can I paste in?
Three-digit and six-digit hex (with or without #), rgb()/rgba(), and hsl()/hsla(). The alpha channel is accepted but not shown in the converted output.
Why do converted values sometimes round?
HSL is stored with whole-degree hue and whole-percent saturation and lightness, so a round trip through HSL can shift a channel by a point or two. HEX and RGB are exact.
Is my color sent anywhere?
No — every conversion runs in your browser with plain math. Nothing leaves your device.