Color Converter
Convert colors between HEX, RGB, HSL and HSV with a live preview.
Color Converter
CSS, design tools, and image libraries all speak different color dialects, and manually translating a shade from HEX to RGB or HSL wastes time and invites typos. This color converter takes a color in HEX, RGB, HSL, or HSV and instantly shows its equivalent in the other formats, with a live swatch so you can confirm you've got exactly the shade you meant.
How it works
Everything runs locally in your browser. Enter a color in any supported format and the tool parses it and recalculates the other representations on your machine, updating the preview and every field as you go. There's no server round-trip, so conversions are instant, and the page keeps working offline once it has loaded.
Common use cases
- Convert a designer's HEX value into
rgba()for CSS opacity. - Move between HSL and HEX while tweaking a palette.
- Match a color from a mockup to code exactly.
- Understand how HSV maps to the values in your tools.
Pair it with the Color Picker & Palette to build a scheme, generate backgrounds with the CSS Gradient Generator, or verify accessibility with the Color Contrast Checker.
Private by design
Your colors never leave the browser — no upload, no sign-up, no tracking. The converter is free and works on every modern browser, including mobile, so you can translate and preview colors instantly wherever you're working.
Frequently asked questions
It converts between HEX, RGB, HSL, and HSV, updating every format and the live preview at once.
Related tools
Number Base Converter
Convert numbers between binary, octal, decimal and hexadecimal.
CSV to Markdown Table
Paste CSV and get a GitHub-flavored Markdown table you can drop into any README.
Markdown to HTML
Render Markdown to clean, sanitized HTML with a live preview.
HTML to Markdown
Convert HTML into tidy Markdown for docs, notes and issues.