Productivity
Color Converter
Convert HEX, RGB and HSL colour values, preview the colour instantly and copy the format you need.
- HEX ⇄ RGB ⇄ HSL conversion
- Live colour swatch
- Copy any format for your stylesheet
Local processing. Everything you type stays in this browser tab — nothing is sent to a server, and no account is required.
Preview
HEX
#2563eb
RGB
rgb(37, 99, 235)
HSL
hsl(221, 84%, 53%)
CSS snippet
color: #2563eb;
How it works
Design systems mix notation: HEX in design tools, RGB in legacy stylesheets, HSL when you want to reason about lightness. This converter translates between the three, shows a live swatch of the result and hands you a ready-to-paste CSS declaration.
Using the tool
- Type a value — #2563eb, rgb(37, 99, 235) or hsl(221, 84%, 53%) all work — or pick a colour with the swatch input.
- The preview and all three notations update as you type.
- Copy the notation you need, or grab the CSS snippet at the bottom.
Everything runs locally in this browser tab. See the full list of online tools for more utilities, or browse the SaaS directory if you are evaluating software rather than running a quick conversion.
Frequently asked questions
- Which formats are accepted?
- Three-digit and six-digit HEX (with or without the leading #), rgb()/rgba() with decimal values, and hsl()/hsla() with a degree hue and percentage saturation and lightness.
- Why is my HEX not matching the design tool?
- Design tools often display sRGB values that include an alpha channel. This converter works on fully opaque colours, so strip the last two digits of an eight-digit HEX first.
- Does the colour picker store anything?
- No. The value lives in the page only; nothing is sent to a server or written to storage.
More free tools
Every tool on DigitalDany runs locally in your browser.
HTML Editor
Write HTML, CSS and JavaScript side by side and see the result instantly in a sandboxed live preview.
Open toolJSON Formatter
Validate, pretty-print and minify JSON with clear error messages that point to the broken line.
Open toolBase64 Encoder
Encode text to Base64 or decode Base64 back to text, with UTF-8 handled correctly for international characters.
Open tool