BBoltlyze

Color Converter

Free color converter: convert between HEX, RGB and HSL with a live swatch preview. Type in any format and get the other two instantly. No sign-up.

Tool inputs are processed on your device. Anonymous usage events are recorded separately.

Type a color in any format to convert instantly.

How to use it

  1. 1

    Enter a color in any format

    Type a HEX code (#6366F1), RGB (rgb(99, 102, 241)) or HSL (hsl(239deg, 84%, 67%)) — the other formats update instantly with a live swatch preview.

  2. 2

    Copy what you need

    One click copies the HEX, RGB or HSL string in the exact format your CSS, design tool or doc expects.

HEX, RGB and HSL are different notations for colors in the sRGB display space. This converter accepts three- or six-digit HEX (with or without #), integer rgb(r,g,b), and integer hsl(h,s%,l%). Hue may be written with deg or °; the HSL output uses the CSS-compatible deg suffix. It shows the other representations and a browser preview as you type.

For example, #6366F1 parses as RGB 99, 102, 241. RGB channels must be whole numbers from 0 to 255; HSL saturation and lightness must be whole percentages from 0 to 100. Hue is wrapped into a 0–359 degree range. The tool does not parse alpha channels, CSS Color 4 syntax, named colors or display-P3 values. If an input is not recognized, check punctuation and ranges or convert it to a supported format first.

The converter rounds HSL output to whole degrees and percentages, so converting that rounded value back may differ slightly from the original RGB channels. Use the HEX or RGB output when you need to preserve the exact 8-bit sRGB value. HSL can be easier to adjust by eye: hold hue steady while changing lightness, then check the contrast in your actual design.

Copy buttons put each result on the clipboard when the browser allows it. The conversion runs locally in the page and does not send the color to Boltlyze’s AI gateway. See the Privacy Policy for site-wide analytics and advertising details.

FAQ

When should I use HSL instead of HEX?

HSL makes adjustments intuitive — lighten by raising lightness, mute by lowering saturation — where HEX requires guesswork. Modern CSS supports hsl() natively, so converting freely between formats costs nothing.

Is there any color information loss converting between formats?

They can represent the same sRGB color, but this tool rounds HSL values to whole numbers and RGB channels to whole bytes. Converting from a rounded HSL value can shift a channel slightly. Alpha transparency and wide-gamut color spaces are not supported.

Related tools