Enter a color in any format
Type a HEX code, RGB values, or HSL values — or pick a sample swatch.
Convert colors between HEX, RGB, and HSL with a live preview and copy-ready CSS values — processed locally in your browser.
Convert colors between HEX, RGB, and HSL with a live preview and copy-ready CSS values — processed locally in your browser.
Design conversion tool
Convert colors between HEX, RGB, and HSL with a live preview and copy-ready CSS values — processed locally in your browser.
Workspace
Enter a color in one format and convert it to the others for CSS, design systems, and documentation.
Input
Choose a format tab and type values, then sync.
Output
Copy any format for CSS or design documentation.
#0ea5e9rgb(14, 165, 233)hsl(199, 89%, 48%)Guide
Use the HEX, RGB, or HSL tab to enter values in the format you already have from a design file, browser inspector, or brand guide.
Type directly into the fields, use the color picker for quick selection, or click a sample swatch to load a preset color.
All three format panels update together so you can copy the representation you need for CSS, Figma tokens, or documentation.
Click Copy next to any format row to place that value on your clipboard — for example rgb(14, 165, 233) or hsl(199, 89%, 48%).
Type a HEX code, RGB values, or HSL values — or pick a sample swatch.
See the color swatch update instantly as values sync across all three formats.
Copy HEX, rgb(), or hsl() strings for stylesheets, design tokens, or component props.
No. All conversions run locally in your browser with no server requests.
3-digit (#RGB), 6-digit (#RRGGBB), and 8-digit (#RRGGBBAA) hex codes with or without the # prefix.
8-digit HEX codes with alpha are parsed, but RGB and HSL outputs use opaque values. Full RGBA/HSLA output may be added later.