What the color converter does
Enter a color in any of HEX, RGB, or HSL and this tool instantly shows the other formats, previews the swatch, offers a visual picker, and displays the complementary color. Every value is one click to copy, so you can grab exactly the format your stylesheet or design tool expects.
How to convert a color
- Type a value in any format (e.g.
#3b82f6) or use the picker. - Read the equivalent HEX, RGB, and HSL instantly.
- Copy the format you need, or grab the complementary color for an accent.
HEX vs RGB vs HSL — when to use each
HEX and RGB describe the same thing (red, green, blue channels) and are interchangeable — HEX is compact, RGB is readable and supports an alpha channel. HSL (hue, saturation, lightness) is the one to reach for when you're adjusting a color: nudging lightness to build a shade ramp or shifting hue for a palette is intuitive in HSL and painful in HEX.