Color Converter (HEX, RGB, HSL)
Convert colors between HEX, RGB, and HSL instantly — type any format (including HSL and RGB), with a live swatch and one-click copy. Free, in your browser.
💡 How to use
- Type a color in any box — HEX, RGB, or HSL — and the others convert instantly.
- Or use the color picker below the swatch to choose visually.
- Click the 📋 next to a value to copy it. Accepts
#abc,#aabbcc,rgb(...), andhsl(...).
Free Color Converter — HEX, RGB, HSL
Convert colors between HEX, RGB, and HSL instantly. Type a value in any format — including HSL and RGB, not just HEX — and the others update live, with a color swatch and one-click copy. A fast, two-way color converter that runs entirely in your browser. Free, no sign-up.
What do HEX, RGB, and HSL mean?
They are three ways to describe the same color. HEX is a six-digit hexadecimal code like #6D5EF6, common in CSS and design tools. RGB describes a color by its red, green, and blue components from 0 to 255. HSL describes it by hue (the color's position on the wheel, 0–360°), saturation (how vivid it is), and lightness (how light or dark). This tool converts freely between all three.
How to use the color converter
It is fully two-way:
- Type a color into any box — HEX, RGB, or HSL.
- The other two formats convert instantly, and the swatch updates.
- Or use the color picker to choose visually.
- Click the copy button next to any value to grab it.
Why HSL is worth knowing
HSL is the most intuitive format for adjusting colors. Because hue, saturation, and lightness are separate, you can build a palette by keeping the hue fixed and changing only lightness for tints and shades, or nudge the hue for a related accent color. That is far harder to do by eye in HEX or RGB. Converting a brand HEX color to HSL is often the first step in generating a whole, harmonious color scheme.
Accepted input formats
The converter is flexible about how you type a color. HEX works as #6D5EF6 or the short #abc form. RGB is accepted as rgb(109, 94, 246) or just the three numbers. HSL is accepted as hsl(246, 89%, 67%) or the raw values. Whatever you paste from your design tool or stylesheet, the converter parses it and fills in the rest.
Common uses
Color conversion is a daily task in web and UI work:
- Turning a designer's HEX color into RGB or HSL for CSS.
- Adjusting lightness in HSL to create hover and active states.
- Matching colors between design tools that use different formats.
- Building tints and shades for a consistent palette.
Pro tip
To make a lighter or darker version of a color for hovers, buttons, and borders, convert it to HSL and change only the lightness value up or down — the hue and saturation stay consistent, so the shades feel like they belong together. For gradients and other CSS effects, see our CSS Gradient Generator and other design tools.
FAQ
Is this color converter free?
How do I convert HEX to RGB or HSL?
Can I convert HSL or RGB back to HEX?
What is the difference between RGB and HSL?
What HEX formats are supported?
How do I make a lighter or darker shade of a color?
Is my color data kept private?
Related tools
Pro tip: pair this tool with Upside Down Text Generator and Text Similarity Checker for a faster SEO workflow.