HEX to RGB converter.
Type a hex color code and get its RGB value at once, with the base-16 working pair by pair and every other notation underneath.
HEX to RGB converter.
Need the UI around it? With Pro, your AI agent builds the form, the result card and the rest of the page from a prompt.
Get ProHow it works
3 steps, no account. It runs in your browser and nothing is uploaded.
Type the hex code
With or without the #, in 3, 4, 6 or 8 digits.
Read the RGB
The RGB value appears under it, with each pair's decimal value.
Copy it
Copy it in modern or legacy syntax, or any other notation below.
Related tools
More color tools. Every one free, in the browser.
Pricing
Build it with Pro
The tool is free. Pro adds 6,000+ blocks, premium templates and the MCP server, so your AI editor builds the product around it.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
Questions and answers
Before you trust the result: what to know about the format, the limits, your data and the tools next to it.
Split the six digits into three pairs and read each pair as a number in base 16: #3b82f6 is 3b, 82 and f6, which are 3 × 16 + 11 = 59, 8 × 16 + 2 = 130 and 15 × 16 + 6 = 246. So #3b82f6 is rgb(59 130 246).
Three digits are shorthand with each digit doubled: #36f is #3366ff. Four and eight digits add alpha as the last digit or pair: #3b82f680 is rgb(59 130 246 / 0.5), since 80 in hex is 128 of 255.
Yes, exactly: both name the same 16.7 million sRGB colors, so the round trip loses nothing.
Modern CSS writes rgb(59 130 246) with spaces and an optional / alpha; the Legacy switch gives rgb(59, 130, 246) and rgba(), which older tools expect. Browsers read both.
Yes. The rows under the answer give the same color in HSL, OKLCH, Lab, Display P3 and the rest, each editable and copied with one press.
No. The conversion runs in your browser; nothing is sent anywhere.
No. The HEX to RGB converter is free and opens without a sign-in, an account or an install.
Nothing. The HEX to RGB converter holds your input in the page's memory, so closing or reloading the tab clears it, and it saves nothing in this browser.
Closest to the HEX to RGB converter: RGB to HEX converter, HEX to HSL converter, Color converter, HEX to OKLCH converter. Each opens on its own page, free and in the browser.
The HEX to RGB converter is one of 17 in its group. The group's page, /tools/color, lists them all.
The tool is free. Its interface is built from shadcn.io's own components (Button, Input, Slider and the rest of the registry under /ui), which come in React, Vue, Svelte and Solid. Pro adds the blocks and templates for the product around it.
4.9 out of 5 from 150+ developers
Build the product around it
Every block, template and icon, installed by your AI agent in your theme. The tools stay free.
Get Pro



