Convert between HEX, RGB, and HSL with a visual picker.
#3B82F6rgb(59, 130, 246)hsl(217, 91%, 60%)🎨 Use the color picker or type any format — converts to all three instantly. Common for web design, CSS, and brand guidelines.
Colors on the web are described in three main formats: HEX (like #3b82f6), RGB (like rgb(59, 130, 246)), and HSL (like hsl(217, 91%, 60%)). This tool converts between all three instantly — type any format or use the visual color picker.
HEX is the default for CSS and most design tools. RGB is useful when you need to manipulate channels in code or add alpha transparency (rgba). HSL is best when adjusting colors intuitively — creating variations of a hue is much easier in HSL than HEX.
More tools you might find useful
One base color to five harmony schemes, each swatch in hex/rgb/hsl.
Generate fluid font sizes with CSS clamp().
Build linear, radial, and mesh gradients with live preview.
Tune box-shadow and glassmorphism visually, preview live, copy the CSS.