HEX to RGB

Paste a hex code, read RGB, HSL and CMYK.

FREE - NO SIGN-UP - RUNS ON YOUR DEVICE

Runs in your browser tab

Embed

Put HEX to RGB on your own page

Paste this into your page. The tool runs inside the frame, on your reader’s own device, exactly as it does here — nothing uploads.

Embed this tool
<iframe src="https://spottools.co/embed/hex-to-rgb" title="HEX to RGB - SPOTTOOLS" width="100%" height="560" loading="lazy" style="border:1px solid #e5e5e5;border-radius:14px"></iframe>
<p style="font-size:13px"><a href="https://spottools.co/hex-to-rgb">HEX to RGB</a> - SPOTTOOLS</p>
  • HEXin
  • RGBout
  • 4formats linked
  • 0uploads
In practice

What you can count on

  • 4formats linked
    • HEX, RGB, HSL and CMYK together
    • Edit one and the rest follow
  • Liveswatch
    • The color is shown as you type
    • Change the code and compare instantly
  • 0uploads
    • The code stays in this tab
    • Nothing is sent for processing
Specification

HEX to RGB at a glance

Input
A color in HEX, RGB, HSL or CMYK
Output
RGB, plus HSL and CMYK
Method
sRGB conversion, in your tab
Swatch
A large block of the color
What the boxes accept
Shorthand hex and loose syntax
Price
Free
Account required
None
Where processing happens
On your device
How to

How to use HEX to RGB

  1. 1

    Paste the hex code

    Type or paste the code into the HEX field in the working area.

  2. 2

    Read the RGB

    The RGB numbers update as you type, with HSL and CMYK beside them and the swatch showing the color.

  3. 3

    Copy what you need

    Take the values with the copy button, or carry on editing any field until the color is right.

Questions

Frequently asked questions

What does a hex code actually contain?

Three pairs of hexadecimal digits: red, then green, then blue. RGB writes those same three channels in decimal, which is why the conversion is arithmetic rather than a lookup.

Do I get HSL and CMYK as well?

Yes. All four formats sit on the same panel. Edit any one of them and the other three follow, so the HEX field is only one way in.

Is my color sent anywhere?

No. The conversion runs in this browser tab. Nothing is sent to a processing server and nothing is stored in an account.

Which browsers work?

Current versions of Chrome, Edge, Firefox and Safari have the browser features used here. A very old browser may lack a required API.

What happens while I am still typing a hex code?

The box turns red and is marked invalid for screen readers, but what you typed is left exactly as typed. Nothing is silently corrected, so a half-finished code never turns into a color you did not choose.

Background

Reading a hex code

Type or paste the code into the HEX field. The RGB numbers appear as you type, with HSL and CMYK on the same panel and a swatch showing the color.

  • Each pair of digits is one channel: red, then green, then blue.
  • The same color has one hex code and one RGB triple, so nothing is lost moving between them.
  • Copy the format the file you are editing expects, rather than converting it again later.
  • Check the swatch as well as the numbers, because one mistyped digit still gives a valid code.

Full specification

Specification of the HEX to RGB tool
InputA color written in HEX. RGB, HSL and CMYK are accepted in the same panel.
OutputThe matching RGB triple, and the same color in HSL and CMYK.
MethodsRGB conversion and rounding, worked out in the page you are on.
SwatchA large block of the current color sits beside the fields.
What the boxes accept#abc, abc and ABC all read the same, and the RGB, HSL and CMYK boxes take rgb(12, 34, 56), hsl(220 83% 53%) or plain 12/34/56.
PriceFree. Supported by clearly labeled ads outside the working area.
Account requiredNo.
Where processing happensIn your browser tab. Your input is never uploaded.
Next step

Keep going with the same files

All color tools: Color tools on SPOTTOOLS